A comprehensive guide to sending keystrokes via touch events
This documentation explains how to use keystroke commands in your touch interface. You can send various key combinations, media controls, and text input using simple command syntax.
There are three types of commands you can use:
Send individual keys or combinations of keys by connecting them with a plus sign (+):
A - Sends the 'a' key
Ctrl+C - Sends Ctrl+C combination (copy)
Send entire text strings by enclosing them in double quotes:
"Hello World" - Types the text "Hello World"
Hold keys for a specific duration by adding :hold[milliseconds] at the end:
W:hold1000 - Holds the W key for 1 second (useful for games)
Ctrl+Shift+Esc:hold500 - Holds the key combination for 500ms
Note: Multiple commands can be combined with commas to create sequences:
Ctrl+A,Ctrl+C,"New text",Enter - Selects all, copies, types "New text", then presses Enter
These keys are typically used in combination with other keys:
Command | Description | Aliases |
---|---|---|
Ctrl | Left Control key | Control |
Alt | Left Alt key | Option (for Mac) |
Shift | Left Shift key | - |
GUI | Left GUI key (Windows key/Command key) | Win, Command |
RCtrl | Right Control key | RControl |
RAlt | Right Alt key | ROption |
RShift | Right Shift key | - |
RGUI | Right GUI key | RWin, RCommand |
Command | Description |
---|---|
F1 - F12 | Function keys F1 through F12 |
All alphabets (A-Z) and numbers (0-9) can be used directly in commands.
A - Sends lowercase 'a'
Shift+A - Sends uppercase 'A'
1 - Sends the number '1'
Command | Character |
---|---|
Minus | - |
Equal | = |
LeftBracket | [ |
RightBracket | ] |
Backslash | \ |
Semicolon | ; |
Quote | ' |
Grave | ` |
Comma | , |
Period | . |
Slash | / |
Command | Description |
---|---|
MediaPlayPause | Play/Pause media playback |
MediaNextTrack | Skip to next track |
MediaPreviousTrack | Go to previous track |
MediaStop | Stop media playback |
MediaMute | Mute audio |
MediaVolumeUp | Increase volume |
MediaVolumeDown | Decrease volume |
Command | Action |
---|---|
Ctrl+C | Copy |
Ctrl+V | Paste |
Ctrl+X | Cut |
Ctrl+Z | Undo |
Ctrl+S | Save |
Ctrl+A | Select All |
Alt+Tab | Switch between applications |
Ctrl+Alt+Delete | Open task manager/security options |
W:hold2000,A:hold500,Shift+W:hold3000 - Move forward for 2 seconds, left for 0.5 seconds, then sprint forward for 3 seconds
GUI+R,"notepad",Enter,"Hello World!",Enter - Opens Run dialog, launches Notepad, types "Hello World!" and presses Enter
MediaVolumeDown,MediaVolumeDown,MediaPlayPause - Lowers volume twice and pauses playback
Note: Some key combinations may be intercepted by the operating system and might not reach your target application.