keyFlags =  keyboard .flags .get  (  )  
                           
Description :

This instruction returns the state of the special keys on the keyboard.

Return Value :

  • KEY_NUMLOCK
    KEY_SCROLL
    KEY_LEFT_SHIFT
    KEY_RIGHT_SHIFT
    KEY_LEFT_CONTROL
    KEY_RIGHT_CONTROL
    KEY_LEFT_ALT
    KEY_RIGHT_ALT

Notes :


Should more than one special key be pressed, the return value will take the following form:

KEY_NUMLOCK + KEY_SCROLL + KEY_LEFT_SHIFT + etc.

In order to get the Keyflags, you should therefore use a mask.

For example for KEY_LEFT_SHIFT:

if (%keyflags & KEY_LEFT_SHIFT)

Examples :