IsKeyDown

Tells about keys/mouse.

Syntax:

IsKeyDown(keycodes)

Parameters:

(i) keycodes @SHIFT and/or @CTRL.

Returns:

(i) @YES if the key is down; @NO if the key is not down.

 

Determines if the Shift key or the Ctrl key is currently down.

Note: The right mouse button is the same as Shift, and the middle mouse button is the same as Ctrl.

Examples:

IsKeyDown(@SHIFT)
IsKeyDown(@CTRL)
IsKeyDown(@CTRL | @SHIFT)
IsKeyDown(@CTRL & @SHIFT)
Message("IsKeyDown","Key Is Down.")

 

See Also:

WaitForKey