WinShiftKeys

Deprecated. Works only on VTScada servers, not on Internet clients. Use WinMatchKeys for new code.

(Engine-Level Function)

Description: Returns a value which contains the current status of the Shift, Control and Alt control keys.
Returns: Numeric
Usage: Script or steady state.
Function Groups: Keyboard
Related to: WinMatchKeys
Format: WinShiftKeys(Object)
Parameters:  
Object   
Required. 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)

(See: Bitwise Parameters & Operations)

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