Touch Keystroke Documentation

A comprehensive guide to sending keystrokes via touch events

Introduction

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.

Command Syntax

There are three types of commands you can use:

1. Simple Key Presses

Send individual keys or combinations of keys by connecting them with a plus sign (+):

Example:

A - Sends the 'a' key

Ctrl+C - Sends Ctrl+C combination (copy)

2. Text Input

Send entire text strings by enclosing them in double quotes:

Example:

"Hello World" - Types the text "Hello World"

3. Key Hold Duration

Hold keys for a specific duration by adding :hold[milliseconds] at the end:

Example:

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

Modifier Keys

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

Function Keys

Command Description
F1 - F12 Function keys F1 through F12

Alphabets and Numbers

All alphabets (A-Z) and numbers (0-9) can be used directly in commands.

Example:

A - Sends lowercase 'a'

Shift+A - Sends uppercase 'A'

1 - Sends the number '1'

Special Characters

Command Character
Minus -
Equal =
LeftBracket [
RightBracket ]
Backslash \
Semicolon ;
Quote '
Grave `
Comma ,
Period .
Slash /

Media Control Keys

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

Common Examples

Basic Operations

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

Advanced Examples

Gaming Controls:

W:hold2000,A:hold500,Shift+W:hold3000 - Move forward for 2 seconds, left for 0.5 seconds, then sprint forward for 3 seconds

Productivity Sequence:

GUI+R,"notepad",Enter,"Hello World!",Enter - Opens Run dialog, launches Notepad, types "Hello World!" and presses Enter

Media Control:

MediaVolumeDown,MediaVolumeDown,MediaPlayPause - Lowers volume twice and pauses playback

Tips and Troubleshooting

Note: Some key combinations may be intercepted by the operating system and might not reach your target application.