SetKeyState

Syntax:

SetKeyState( Key, State )

Return:

true if the key state has been modified, false if it was already in the requested state.

Parameters:

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.

Remarks:

This function will return the current toggle state of one of the keyboard "lock" keys.

image\Script_Button.jpgExamples