WinShiftKeys

Description:              This function returns a value which contains the current status of the Shift, Control and Alt control keys.

Returns:                    Numeric

Usage:                       Script or Steady State

Format:                      WinShiftKeys(Object)

Parameters:             Object     { Object value }  { required }  { no default: }

                                                Any expression that gives the object value of any module instance which is drawn in the window.

Comments:               The return value will be a sum of the individual key values (i.e. each key has a bit which when set indicates that the key is currently pressed):

Return Value

Bit No.

Key

1

0

Shift

2

1

Control

4

2

Alt

8

3

Caps lock (locked on)

16

4

Num lock (locked on)

32

5

Scroll lock (locked on)

64

6

Left arrow

128

7

Down arrow

256

8

Right arrow

512

9

Up arrow

1024

10

Page down

2048

11

Page up