Programming
95
Modero G4 Touch Panels - Configuration and Programming
Input Commands
These Send Commands are case-insensitive.
Embedded Codes
The following is a list of G4 compatible embedded codes:
Input Commands
^KPS
Set the keyboard passthru.
Syntax:
"'^KPS-<pass data>'"
Variables:
pass data:
<blank/empty> = Disables the keyboard.
0 = Pass data to G4 application (default). This can be used with VPC or text areas.
1 - 4 = Not used.
5 = Sends out data to the Master.
Examples:
SEND COMMAND Panel,"'^KPS-5'"
Sets the keyboard passthru to the Master. Option 5 sends keystrokes directly to the Master via the
Send Output String mechanism. This process sends a virtual keystroke command (^VKS) to the
Master.
SEND COMMAND Panel,"'^KPS-0'"
Disables the keyboard passthru to the Master.
Accepts keystrokes from attached USB keyboard or Virtual keyboard.
^VKS
Send one or more virtual key strokes to the G4 application.Key presses and key releases are not
distinguished except in the case of CTRL, ALT, and SHIFT.
Refer to theEmbedded Codes table on page 95
that define special characters which can be included
with the string but may not be represented by the ASCII character set.
Syntax:
"'^VKS-<string>'"
Variable:
string = Only 1 string per command/only one stroke per command.
Example:
SEND COMMAND Panel,"'^VKS-'8"
Sends out the keystroke 'backspace' to the G4 application.
Embedded Codes
Decimal #
Hex value
Virtual keystroke
Decimal #
Hex value
Virtual keystroke
8
($08)
Backspace
149
($95)
Page Up
13
($0D)
Enter
150
($96)
Page Down
27
($1B)
ESC
151
($97)
Scroll Lock
128
($80)
CTRL key down
152
($98)
Pause
129
($81)
ALT key down
153
($99)
Break
130
($82)
Shift key down
154
($9A)
Print Screen
131
($83)
F1
155
($9B)
SYSRQ
132
($84)
F2
156
($9C)
Tab
133
($85)
F3
157
($9D)
Windows
134
($86)
F4
158
($9E)
Menu
135
($87)
F5
159
($9F)
Up Arrow
136
($88)
F6
160
($A0)
Down Arrow
137
($89)
F7
161
($A1)
Left Arrow
138
($8A)
F8
162
($A2)
Right Arrow
139
($8B)
F9
192
($C0)
CTRL key up
140
($8C)
F10
193
($C1)
ALT key up
141
($8D)
F11
194
($C2)
Shift key up
142
($8E)
F12
143
($8F)
Num Lock
144
($90)
Caps Lock
145
($91)
Insert
146
($92)
Delete
147
($93)
Home
148
($94)
End