acet-sys-keystate (AutoLISP/Express Tools)

Checks the state of a virtual key.

Supported Platforms: AutoCAD for Windows only; not available in AutoCAD LT for Windows, or on Mac OS and Web

Signature

(acet-sys-keystate keycode)
keycode

Type: Integer

Code for the virtual key to test.

Return Values

Type: Integer

Status of the specified virtual key.

Remarks

See the documentation for the GetKeyState() Win32 function for additional details.