Page 1 of 1

#VK_SLEEP constant missing ?

Posted: Tue Dec 30, 2008 8:29 pm
by Seldon
Hello,
I'm in the process of making a collection of definitions for several key constants, like raw codes (scancodes) and virtual-key codes, in order to have standard names for all the languages I use (mainly PureBasic and BlitzBasic, but also VB.NET) and I've noticed that #VK_SLEEP and #PB_Shortcut_Sleep constants are missing. Is there a reason for that ?

Posted: Tue Dec 30, 2008 8:38 pm
by Kaeru Gaman
what should sleep be? do you mean Pause?

#VK_PAUSE and #PB_Shortcut_Pause are there...

Posted: Tue Dec 30, 2008 9:03 pm
by Seldon
Kaeru Gaman wrote:what should sleep be? do you mean Pause?
#VK_PAUSE and #PB_Shortcut_Pause are there...
Thanks for reply. I don't know what it should be, but it isn't the same as 'Pause' as they have different definition codes:

VK_PAUSE (0x13)
PAUSE key

VK_SLEEP (0x5F)
Computer Sleep key

See also here :
http://msdn.microsoft.com/en-us/library/ms645540.aspx

Posted: Tue Dec 30, 2008 10:44 pm
by Kaeru Gaman
oh, I see.
you mean one of those superflous mega function keys...

well, dunno why they are not predifined...
add them into the "missing API constants" thread.