Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to call desert GetKeyState function in easy language
How to call desert GetKeyState function in easy language
Function introduction:

Gets the specified key state. (Foreground information, not background)

Functional prototype:

Long GetKeyState(vk_code)

Parameter definition:

Vk_code integer: virtual key code

Return value:

Plastic number:

0: rebound

1: press

Example:

TracePrint dm。 GetKeyState( 13)

This is the description of the official plug-in. How to use it is

Dm。 Get keystone (# ctrl key)

Zero means bounce. Go back to 1 and just press.