GetKeyState

Syntax:

GetKeyState( Key )

Return:

true if the key is currently on, false if it is off.

Parameters:

Key – A single character string to select the key to return the state of. Possible values are:

 

Character

Key Name

N

Num Lock

C

Caps Lock

S

Scroll Lock

Remarks:

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

image\Script_Button.jpgExamples