⌨️ Keyboard Commands
Text Input Commands
Description: Prints the provided text as keyboard input.
Syntax:
write '<text>'Example:
write 'Hello, World!'Description: Prints the provided text followed by pressing Enter.
Syntax:
writeLn '<text>'Example:
writeLn '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,shift,alt,gui - Arrow Keys:
up,down,left,right - Function Keys:
F1toF24 - Special Keys:
enter,esc,backspace,space,tab,delete,insert,home,end,pageup,pagedown,capslock - Numpad Keys:
num0,num1,num2,num3,num4,num5,num6,num7,num8,num9,numslash,numasterisk,numminus,numplus,numenter,numperiod - Media Keys:
volup,voldown,mute,playpause,nexttrack,prevtrack,stop,www_home,local_machine_browser,calculator,www_bookmarks,www_search,www_stop,www_back,consumer_control_configuration,email_reader - Single Characters: Any single character (e.g.,
a,b,1, etc.)
Syntax:
key '<key_name>' [<action>]Example:
key 'esc'
key 'ctrl' hold
key 'ctrl' releaseDescription: Simulates pressing multiple keys simultaneously.
Syntax:
comboKey '<key1+key2+...>'Example:
comboKey 'ctrl+shift+esc'
comboKey 'alt+tab'Description: Presses an arrow key (up, down, left, or right).
Syntax:
arrowKey '<direction>'Example:
arrowKey 'left'
arrowKey 'down'System Control Commands
Description: Changes the keyboard layout to a specified language.
Supported Layouts: German, SwissGerman, English_UK, French, Spanish, Portuguese, Portuguese_BR, Italian, Danish, Swedish, Turkish, Chinese, Japanese, Korean, Russian, Arabic, Hindi, Polish, Dutch, English (default)
Syntax:
keyboardLayout '<language>'Example:
keyboardLayout 'German'Description: Opens the terminal application for a specified operating system.
Supported Values:
windowslinuxmaciosandroid
Syntax:
terminal '<operating_system>'Example:
terminal 'windows'Device Control
Description: Sets a delay between keypresses.
Syntax:
setDelay '<milliseconds>'Example:
setDelay '50'Description: Sets reported BLE battery level.
Syntax:
setBattery <level>Example:
setBattery 75