Product Documentation

Virtual Key Codes for Windows, Web and Terminal Emulator-based Applications

May 11, 2015

Single Sign-on supports virtual key codes for Windows, Web and terminal emulator-based applications. These codes are used to send specific keystrokes to logon or password change form fields.

Codes for VTabKeyN (Windows and Web)

Use the following identifiers to create a key code sequence for Windows and Web-based applications.

Code Description
‘DELAY=N’ N is the number of milliseconds to delay.
‘VKEY=N’ N is the virtual key code to send.

For example, to send a Tab, End, Space, a 1.5 second delay, Logon username, Space, the username/ID, Home, a 0.35 second delay, Tab, and then the password use the following:

 
VTabKey1= ‘VKEY=9’‘VKEY=35’ ‘DELAY=1500 ‘Logon username‘VKEY=32’ 
VTabKey2=‘VKEY=36’‘DELAY=350’‘VKEY=9’ 

Codes for VirtualKeyCode and VKEY (Windows and Web)

Key Code Key Code Key Code Key Code
Break 3 5 53 V 86 F5 116
Backspace 8 6 54 W 87 F6 117
Tab 9 7 55 X 88 F7 118
Clear 12 8 56 Y 89 F8 119
Enter 13 9 57 Z 90 F9 120
Shift 16 A 65 Left (window) 91 F10 121
Ctrl 17 B 66 Right (window) 92 F11 122
Alt 18 C 67 NumPad 0 96 F12 123
Caps Lock 20 D 68 NumPad 1 97 F13 124
Esc 27 E 69 NumPad 2 98 F14 125
Spacebar 32 F 70 NumPad 3 99 F15 126
Page Up 33 G 71 NumPad 4 100 F16 127
Page Down 34 H 72 NumPad 5 101 F17 128
End 35 I 73 NumPad 6 102 F18 129
Home 36 J 74 NumPad 7 103 F19 130
Left 37 K 75 NumPad 8 104 F20 131
Up 38 L 76 NumPad 9 105 F21 132
Right 39 M 77 Asterisk(*) 106 F22 133
Down 40 N 78 Plus (+) 107 F23 134
Print Screen 44 O 79 Minus (-) 109 F24 135
Help 47 P 80 Period (.) 110 Num Lock 144
0 48 Q 81 Slash (/) 111 Scroll Lock 145
1 49 R 82 F1 112 Left Shift 160
2 50 S 83 F2 113 Right Shift 161
3 51 T 84 F3 114 Left Ctrl 162
4 52 U 85 F4 115 Right Ctrl 163

Virtual Key Codes for HLLAPI-Compliant Terminal Emulators

Char/Cmd Code Char/Cmd Code Char/Cmd Code
Alt Cursor @$ Local Print @P PF12/F12 @c
Backspace @< Reset @R PF13/F13 @d
@ @@ Shift @S PF14/F14 @e
Alt @A Dup @S@x PF15/F15 @f
Field - @A@- Field Mark @S@y PF16/F16 @g
Field + @A@+ Tab (Right) @T PF17/F17 @h
Field Exit @A@E Cursor Up @U PF18/F18 @i
Alt Cursor @$ Cursor Down @V PF19F19 @j
Erase Input @A@F Cursor Left @L PF20/F20 @k
Sys Request @A@H Cursor Right @Z PF21/F21 @l
Insert Toggle @A@I Page Up @u PF22/F22 @m
Cursor Select @A@J Page Down @v PF23/F23 @n
Attention @A@Q End @q PF24/F24 @o
Print Screen @A@T Home @0 PA1 @x
Hexadecimal @A@X PF1/F1 @1 PA2 @y
Cmd/Func Key @A@Y PF2/F2 @2 PA3 @z
Print (PC) @A@t PF3/F3 @3 PA4 @+
Back/Left Tab @B PF4/F4 @4 PA5 @%
Clear @C PF5/F5 @5 PA6 @&
Delete @D PF6/F6 @6 PA7 @’
Enter @E PF7/F7 @7 PA8 @(
Erase EOF @F PF8/F8 @8 PA9 @)
Help @H PF9/F9 @9 PA10 @*
Insert @I PF10/F10 @a    
New Line @N PF11/F11 @b