The SendKeys= command works like a keyboard macro.
Enter the keys that will automatically be typed when the command is used.
To specify a single keyboard character in a series of SendKeys= commands, use the character itself.
To combine Shift, Ctrl and/or Alt with more than one key at the same time, place the code for those keys in parentheses ( ).
For example, to hold down Shift while the letters E and C are pressed:
SendKeys=+(EC).
The special command {Update} can be used to refresh the screen during the current macro. When used, the program will update the current screens without exiting the current function (in most cases). The syntax is "SendKeys={Update}".
Note: When using Ctrl, the key(s) that are used with it with must be lower-case:
For example, to represent Ctrl+H in a SendKeys= command:
Use this: ^h
Do not use this: ^H
The following codes represent function keys, action keys, certain other keys, and simultaneous key combinations.
Key - Code
F1 - {F1}
F2 - {F2}
F3 - {F3}
F4 - {F4}
F5 - {F5}
F6 - {F6}
F7 - {F7}
F8 - {F8}
F9 - {F9}
F10 - {F10}
F11 - {F11}
F12 - {F12}
F13 - {F13}
F14 - {F14}
F15 - {F15}
F16 - {F16}
SHIFT - +
CTRL - ^
ALT - % (*See Below)
ENTER - {ENTER} or ~
ESC - {ESC}
INS or INSERT - {INSERT} or {INS}
DEL or DELETE - {DELETE} or {DEL}
BACKSPACE - {BACKSPACE}, {BKSP} or {BS}
TAB - {TAB}
HOME - {HOME}
END - {END}
PAGE UP - {PGUP}
PAGE DOWN - {PGDN}
LEFT ARROW - {LEFT}
RIGHT ARROW - {RIGHT}
UP ARROW - {UP}
DOWN ARROW - {DOWN}
PLUS(+) - {+}
HELP - {HELP}
CARET(^) - {^}
BREAK - {BREAK}
PERCENT(%) - {%}
PRINT SCREEN - {PRTSC}
TILDE(~) - (~)
NUM LOCK - {NUMLOCK}
BRACES({ }) - {{}, {}}
CAPS LOCK - {CAPSLOCK}
BRACKETS([ ]) - {[}, {]}
SCROLL LOCK - {SCROLLLOCK}
ENTER MENU - {ENTERMENU}
EXIT MENU - {EXITMENU}
For example: To select the F12 Query Function, use SendKeys={F12}
* Note: The Alt Key (%) should only be used when using an on-screen hot-key, and NOT to address a Menu hot-key. It is recommended to use the {EnterMenu} and {ExitMenu} commands to address menu hot-keys. When a macro uses the menus, you must tell the program at what point the macro enters and exits the upper menus. This is because the menus run as a separate program in Keystroke. Keystroke needs to know whether the keys in the macro should go to the menu or to the Keystroke program itself.
IMPORTANT: The following characters have special meanings to the SendKeys command:
Plus - +
Caret - ^
Percent - %
Tilde - ~
Parentheses - ( )
Braces - { }
To specify one of these characters, enclose it within braces.
For example:
To specify the plus sign, type {+}.
To specify a left brace, type {{}.
Square brackets ([ ]) must also be enclosed in braces, although they have no special meaning to SendKeys.