KeyToggleGet

Returns the status of a toggle key.

Syntax:

KeyToggleGet(@key)

Parameters:

(i) @key the toggle key in question. Values may be one of:
@CAPSLOCK 
 for the CapsLock key
@NUMLOCK 
 for the NumLock key
@SCROLLLOCK
 for the ScrollLock key

Returns:

(i) @ON   Key was set.; @OFF   Key was unset.

 

Use this function to obtain the state of one of the toggle keys - the CapsLock, NumLock, and ScrollLock keys.

 

Example:


a1=KeyToggleGet(@NUMLOCK)
a2=KeyToggleGet(@CAPSLOCK)
a3=KeyToggleGet(@SCROLLLOCK)
b= StrCat(a1," ",a2," ",a3)
Message("NumLock CapsLock ScrollLock", b)
See Also:

KeyToggleSet, SendKey