WinXIsKeyDown


WinXIsKeyDown (key)

determines if a particular key is currently pressed

Parameter Description
key The key to check for

Returns

$$TRUE if the key is pressed, $$FALSE if it isn't

Remarks

The key parameter is a virtual key code. The virtual key codes for alphanumeric keys are their ASCII codes. A list of the virtual key codes for other keys can be found in the Win32 documentation.

Examples

'check to see if the A key is currently pressed
IF WinXIsKeyDown ('A') THEN PRINT "The 'A' key is pressed"

Related Links

onKeyUp
onKeyDown
onChar