- Home
- Docs
- ZeroTrace HID
- Keyboard Commands
ZeroTrace HID
Keyboard Commands
Text Input Commands
Description: Prints the provided text as keyboard input.
Syntax:
write '<text>'
Example:
write 'Hello, World!'
Key Press Commands
Description: Presses and releases a specific keyboard key. Optionally, you can specify whether to hold or release the key.
Supported Keys:
- Modifiers:
ctrl,leftctrl,shift,leftshift,alt,leftalt,gui,leftgui,win,rightctrl,rightshift,rightalt,altgr,rightgui - Arrow Keys:
up,down,left,right - Function Keys:
F1toF24 - Special Keys:
enter,esc,backspace,space,tab,delete,insert,home,end,pageup,pagedown,capslock,numlock,scrolllock,menu,prtsc,printscreen,pause - Numpad Keys:
numslash,numasterisk,numminus,numplus,numenter,num1-num0,numdot - Single Characters: Any single character (e.g.,
a,b,1,2, etc.)
Syntax:
key '<key_name>' '[<action>]'
Example:
key 'esc'
key 'ctrl' 'hold'
key 'ctrl' 'release'
System Control Commands
Description: Changes the keyboard layout to a specified language.
Supported Layouts: German, English, English_UK, French, Spanish, Portuguese, Portuguese_BR
Italian, Danish, Swedish, Turkish, Chinese, Japanese, Korean, Russian, Arabic
Hindi, Polish, Dutch
Syntax:
keyboardLayout '<language>'
Example:
keyboardLayout 'German'
Utility Commands
Description: Sets a global delay that will be applied after each command execution.
Syntax:
defaultdelay <milliseconds>
Example:
defaultdelay 100
Notes:
- Affects all subsequent commands in the script
- Setting to 0 disables the default delay