Keystroke Reference

ControlPad

Keystroke Reference

ControlPad allows you to assign a command code with some special Windows commands and with a series of one or more simulated keystrokes.
All keystroke commands start with a plus sign.

Note: Some of the more common commands on this page are accessible through the Special Commands { } button in the Add Command dialog.

Common Examples

Enter one of these commands after choosing a command code and pressing the divide key (/).
Type the commands exactly as shown.

To...Type...
Send the text "hello world"+hello world
Send F8 to the active window+{F8}
Send F8 then F12 to the active window+{F8}{F12}
Send Alt+F4 to the active window+!{F4}
Send Ctrl+F4 to the active window+^{F4}
Mute the speakers+{Volume_Mute}
Open the default mail client+{Launch_Mail}

Keystroke Commands List

Enter one of these commands after choosing a command code and pressing the divide key (/).
You may place more than one code per command.
The entire command line must be preceded by a plus sign.

CodeMeaning
Key Modifiers
!Alt (e.g. !a sends Alt+A)
+Shift (e.g. +{Tab} sends Shift+Tab)
^Ctrl (e.g. ^{Tab 2} sends Ctrl+Tab+Tab)
#Win key
 
Keys
{F1} - {F24}Function keys. For example: {F12} is the F12 key.
{!}!
{#}#
{+}+
{^}^
{{}{
{}}}
{Enter}ENTER key on the main keyboard.
{Escape} or {Esc}ESCAPE.
{Space}SPACE (this is only needed for spaces that appear either at the beginning or the end of the string to be sent -- ones in the middle can be literal spaces).
{Tab}TAB.
{Backspace} or {BS}Backspace.
{Delete} or {Del}Delete.
{Insert} or {Ins}Insert.
{Up}Up-arrow key on main keyboard.
{Down}Down-arrow down key on main keyboard.
{Left}Left-arrow key on main keyboard.
{Right}Right-arrow key on main keyboard.
{Home}Home key on main keyboard.
{End}End key on main keyboard.
{PgUp}Page-up key on main keyboard.
{PgDn}Page-down key on main keyboard.
 
{CapsLock}CapsLock.
{ScrollLock}ScrollLock.
{NumLock}NumLock.
 
{Control} or {Ctrl}CONTROL.
{Alt}ALT.
{Shift}SHIFT.
 
{LControl} or {LCtrl}Left CONTROL key.
{RControl} or {RCtrl}Right CONTROL key.
{LAlt}Left ALT key.
{RAlt}Right ALT key.
{LShift}Left SHIFT key.
{RShift}Right SHIFT key.
{LWin}Left Windows key.
{RWin}Right Windows key.
* NOTE: With the above keys, you may use the words DOWN or UP to indicate you want the key to be held down or released. For example: {LCtrl Down}abc{LCtrl Up} will hold down the left control key, send the keystrokes abc and release the left control key.
 
{AppsKey}Windows App key (invokes the right-click or context menu).
{Sleep}Computer SLEEP key.
{ASC nnnnn}Sends an ALT+nnnnn keypad combination, which can be used to generate special characters that don't exist on the keyboard. To generate ASCII characters, specify a number between 1 and 255. To generate ANSI characters (standard in most languages), specify a number between 128 and 255, but precede it with a leading zero, e.g. {Asc 0133}.
To generate Unicode characters, specify a number between 256 and 65535 (without a leading zero). However, this is not supported by all applications.
{Numpad0} - {Numpad9}Numpad digit keys (as seen when Numlock is ON). For example: {Numpad5} is the digit 5.
{NumpadDot}Numpad Period (as seen when Numlock is ON).
{NumpadEnter}Enter key on keypad.
{NumpadMult}Numpad Multiply.
{NumpadDiv}Numpad Divide.
{NumpadAdd}Numpad Add.
{NumpadSub}Numpad Subtract.
{NumpadDel}Delete key on keypad (this key and the following Numpad keys are used when Numlock is OFF).
{NumpadIns}Insert key on keypad.
{NumpadClear}Clear key on keypad (usually the '5' key when Numlock is OFF).
{NumpadUp}Up-arrow key on keypad.
{NumpadDown}Down-arrow key on keypad.
{NumpadLeft}Left-arrow key on keypad.
{NumpadRight}Right-arrow key on keypad.
{NumpadHome}Home key on keypad.
{NumpadEnd}End key on keypad.
{NumpadPgUp}Page-up key on keypad.
{NumpadPgDn}Page-down key on keypad.
 
{PrintScreen}Print Screen.
{CtrlBreak}Ctrl+break.
{Pause}Pause.
 
Media Keyboard Keys
{Browser_Back}Select the browser "back" button.
{Browser_Forward}Select the browser "forward" button.
{Browser_Refresh}Select the browser "refresh" button.
{Browser_Stop}Select the browser "stop" button.
{Browser_Search}Select the browser "search" button.
{Browser_Favorites}Select the browser "favorites" button.
{Browser_Home}Launch the browser and go to the home page.
{Volume_Mute}Mute/unmute the master volume.
{Volume_Down}Reduce the master volume.
{Volume_Up}Increase the master volume.
{Media_Next}Select next track in media player.
{Media_Prev}Select previous track in media player.
{Media_Stop}Stop media player.
{Media_Play_Pause}Play/pause media player.
{Launch_Mail}Launch the email application.
{Launch_Media}Launch media player.
{Launch_App1}Launch user app1.
{Launch_App2}Launch user app2.
 
Mouse
{Click [Options]}Sends a mouse click using the same options available in the Click command (see below). For example, {Click} would click the left mouse button once at the mouse cursor's current position, and {Click 100, 200} would click at coordinates 100, 200. To move the mouse without clicking, specify 0 after the coordinates; for example: {Click 100, 200, 0}.
{WheelDown}, {WheelUp}, {LButton}, {RButton}, {MButton}, {XButton1}, {XButton2}Sends a mouse button event at the cursor's current position (to have control over position and other options, use {Click} above).

Click Options

Zero or more of the following items can follow the word Click. Separate each item from the next with at least one space, tab, and/or comma.
The items can appear in any order except ClickCount, which must occur somewhere to the right of the coordinates (if coordinates are present).

X, Y: The x/y coordinates to which the mouse cursor is moved prior to clicking. Coordinates are relative to the active window unless CoordMode was used to change that. If omitted, the cursor's current position is used.
Button Name: Left (default), Right, Middle (or just the first letter of each of these); or the fourth or fifth mouse button (X1 or X2).
Down or Up: These words are normally omitted, in which case each click consists of a down-event followed by an up-event. Otherwise, specify Down (or the letter D) to press the mouse button down without releasing it. Later, use the word Up (or the letter U) to release the mouse button.
Relative: The word Rel or Relative treats the specified X and Y coordinates as offsets from the current mouse position. In other words, the cursor will be moved from its current position by X pixels to the right (left if negative) and Y pixels down (up if negative).