SetKeyState( Key, State )
true if the key state has been modified, false if it was already in the requested state.
Key – A single character string to select the key to change the state of. Possible values are:
Character | Key Name |
N | Num Lock |
C | Caps Lock |
S | Scroll Lock |
State – A boolean flag to determine the new state of the key. Pass true to set the key toggled on, false to turn it off.
This function will return the current toggle state of one of the keyboard "lock" keys.