68 HH490 User Guide
Insert key strokes
B5 Insert a key stroke or combination of key strokes. Key strokes are dependent on
your keyboard (see Keyboard Key References on page 309). Any key can be
inserted, including arrows and functions.
Syntax = 5CB5xxssnn
where xx is the
number of keys pressed (without key modifiers), ss is the key modifier from the
table below, and nn is the key number from the Keyboard Key References, page
Key Modifiers Hex
No Key Modifier 00
Shift Left 01
Shift Right 02
Alt Left 04
Alt Right 08
Control Left 10
Control Right 20
For example, B501021F inserts an “A” on a 104 key, U.S. style keyboard. B5 = the
command, 01 = number of key press events (without the key modifier), 02 is the
key modifier for Shift Right, and 1F is the “a” key. If a lower case “a” were to be
inserted, B501001F would be entered.
If there are three keystrokes, the syntax would change from B5xxssnn for one
keystroke to B5xxssnnssnnssnn. An example that would insert "abc" is as follows:
B503001F00320030F833.
Note:
Key modifiers can be added together when needed. The sum is converted to
hexadecimals.
Example:
Control Left+Shift Left = 17, converted to hexadecimal = 11.
Move Commands
Move the cursor forward a number of characters
F5 Move the cursor ahead “nn” characters from current cursor position.
Syntax = F5nn
where nn is the numeric value (00-99) for the number of
characters the cursor should be moved ahead.
F5 Example: Move the cursor forward and send the data