My Function Keys - Special Keys and Macros

Shift, Control, and Alt keys

To specify keys combined with any combination of the SHIFT, CONTROL, and ALT keys, precede the regular key code with one or more of the following codes:

Key Code
Shift : +
Control : ^
Alt : %

The plus sign (+), caret (^), and percent sign (%) can be sent by enclosing them in braces. For example, to send a percent sign, use {%}.

To specify that any combination of SHIFT, CONTROL, and ALT should be held down while several other keys are pressed, enclose the code for those keys in parentheses.

Repeating text can be sent using {text number}. You must put a space between the text and number.


A Function can be sent by any of the function keys as well.

Function keys may be used without the () parantheses. For example, to send SHIFT-F7 use "+{F7}".

You do not have to explicitly denote that the shift key is down by using a + character in order to output capital letters. Upper case characters are automatically output as capital letters.

Sleep and Snooze

Sleep & Snooze

Pauses the sending of keystrokes for the time specified.

Syntax

{SLEEP seconds} or {SNOOZE milliseconds}

The Sleep / Snooze function has one optional argument:

seconds/milliseconds - Length of time to for. Default is 1.

SLEEP Decsription

Sometimes it is handy to pause the sending of keystrokes for a while. For instance, you might trigger the running of a report, and then want to save it on disk. If the keystrokes were sent while the report was running, the report program may regard this as the user wanting to interupt the report.

The Sleep function overcomes this problem by allowing you to pause in the sending of your keystrokes for a number of seconds. It is used syntactically the same as the function keys. For example if you map F1 to:

My report{NEXT}~{SLEEP 15}S~MYREP.TXT~"

When you hit F1 - it will type "My report", press PgDn,Enter, and then wait for fifteen seconds after which it will press "S",Enter, type "MYREP.TXT", and press Enter.

SNOOZE Decsription

Snooze is like sleep but the time is in milliseconds.

For example if you want to map Alt F then sleep 1/2 second then hit 'S' the code would be : %F {SNOOZE 500} S

Snooze is good to use if you are mapping long macros that use the Alt and Ctrl keys. The keyboard buffer gets to jammed up sometime and things may not work right. If this ever happens - add a {SNOOZE 500} after the Alt or Ctrl keypress.

Non Printable Keys

To send characters that aren't displayed when you press a key (such as ENTER or TAB) and keys that represent actions rather than characters, use the codes shown below.

KeyCode
BACKSPACE{BACKSPACE} or {BS}, or {BKSP}
BELL {BELL}
BREAK {BREAK}
CAPS LOCK{CAPSLOCK} or {CAPS}
DEL {DELETE} or {DEL}
DOWN ARROW {DOWN}
END {END}
ENTER {ENTER} or ~ or {RETURN}
ESCAPE{ESCAPE} or {ESC}
FORM FEED{FORMFEED} or {FF}
HELP {HELP}
HOME {HOME}
INS {INSERT}
LEFT ARROW{LEFT}
LINE FEED{LINEFEED} or {LF}
NEW LINE{NEWLINE} or {NL}
NUM LOCK{NUMLOCK}
PAGE DOWN{PAGEDOWN} or {PGDN} or {NEXT}
PAGE UP{PAGEUP} or {PGUP} or {PRIOR}
PRINT SCREEN {PRINTSCREEN} or {PRTSC}
RIGHT ARROW {RIGHT}
SCROLL LOCK{SCROLLLOCK} or {SCRLK}
TAB {TAB}
UP ARROW{UP}
Function Keys
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}
F17 {F17}
F18 {F18}
F19 {F19}
F20 {F20}
F21 {F21}
F22 {F22}
F23 {F23}
F24 {F24}
Numeric Keypad
0 {NUMPAD0}
1 {NUMPAD1}
2 {NUMPAD2}
3 {NUMPAD3}
4 {NUMPAD4}
5 {NUMPAD5}
6 {NUMPAD6}
7 {NUMPAD7}
8 {NUMPAD8}
9 {NUMPAD9}
* {NUMPADMULTIPLY} or {NUMPAD*}
+ {NUMPADADD} or {NUMPAD+}
- {NUMPADSUBTRACT} or {NUMPAD-}
/ {NUMPADDIVIDE} or {NUMPAD/}
. {NUMPADDECIMAL} or {NUMPAD.}