IsPressed

IsPressed (<vkey>)

Returns the current state of the pressed key.

Options

vkeyVirtual key code according to table.

Return value

1 if the key is pressed, 0 if not. If vkey is incorrect, ERROR is set to 1.

Example

# if the Ctrl key is pressed
If IsPressed (0x11) Then ...