*KEYSTATE (GETMODE)
9.4C
*KEYSTATE={value}
This list control retrieves the current states for special keyboard keys and returns them in the {value} variable. The current states of the keys are determined at the time when the GETMODE instruction is executed.
The {nvar} key state bit mask value is defined as follows:
|
Value |
State |
Virtual Key |
|
0x1 |
ALT key depressed |
VK_MENU |
|
0x2 |
CTRL key depressed |
VK_CONTROL |
|
0x4 |
SHIFT key depressed |
VK_SHIFT |
|
0x8 |
Caps key is locked |
VK_CAPITOL |
|
0x10 |
Num lock key is locked |
VK_NUMLOCK |
|
0x20 |
Scroll lock key is locked |
VK_SCROLL |
See Also: List Controls (GETMODE), GETMODE
![]() |