This shortcut type allows the user to define a combination of key strokes, using the special keys Ctrl, Alt and Shift.
With this option the user can define a "macro" to do a set of actions within a program.
Note: You must be careful what key combination you pick as it will still do its original function in whatever program you're using.
Steps to create a new shortcut key combination for an input macro:
kbrd_input simulates a sequence of key presses, the same as normal typing.
Keyboard input also supports special characters and special keys:
\\, \", \r, \n, \t, \<, \UP, \DOWN, \LEFT, \RIGHT, \INS, \HOME, \DEL, \END, \PGUP, \PGDWN, \CAPS, \ESC, \PRNSCR, \TAB, \ENTER, \F1 - \F12
\\ inserts an actual \
\" inserts an actual "
\r and \n insert a new line (Enter key)
\t inserts a tab
\< inserts a backspace
kbrd_click simulates a keyboard key press and release, where keycode refers to any of the virtual key codes, including special keys.
'Character' may be any single printable character or space bounded by single quotes.
The optional Ctrl-Alt-Shift mask enables the simulation of adding the special keys Ctrl, Alt, and/or Shift to the 'Character'. If the mask is 100, it means Ctrl is pressed. If the mask is 010, it means Alt is pressed. If the mask is 001, it means Shift is pressed. If the mask is 110, it means that Ctrl and Alt are both pressed ... and so on.
The default Ctrl-Alt-Shift mask is 000 (Ctrl, Alt and Shift are not pressed).
kbrd_press simulates a keyboard key press.
Keycode, 'Character' and Ctrl-Alt-Shift mask all have the same meanings as in the kbrd_click command.
In addition, there is an optional delay setting which controls the length of time the key will be pressed (in milliseconds). Keys are released after delay milliseconds automatically.
By default, the key is never released. This can be used in conjunction with the kbrd_release command to simulate a sequence of key presses and releases.
kbrd_release simulates the releasing of a previously pressed key.
This can be used in conjunction with the kbrd_press command to simulate a sequence of key presses and releases.
kbrd_release has no effect if the key is not currently pressed.
command runs a command line to launch a program.
Anything that can be run from the C:\ prompt can be used here.
It is necessary to provide full paths to the executable you want to launch and enclose any path with spaces in quotes.
Examples: