Przejdź do treści

Keyboard

Type text, press keys, send combos, media and system keys — the full keyboard command set

4 min czytaniaTen poradnik jest dostępny tylko po angielsku.
Na tej stronie

Keyboard commands are the core of most payloads. Every command below is dispatched over both USB‑HID and BLE‑HID unless noted.

Typing text

Types text at full speed. writeLn adds a trailing Enter.

write 'Hello, World!'
writeLn 'Hello, World!'

For multi‑line payloads, use the write blocks (writeLnStart … writeLnEnd) instead of one command per line.

Keys and combos

Press (and release) a single key. Add hold to keep it down, or release to let it up. See the key name reference below.

key 'enter'
key 'f5'
key 'a'

Layout

Keystrokes are sent as scancodes; the host maps them through its active layout. Set the layout to match the target with keyboardLayout (names are case‑sensitive):

keyboardLayout 'German'

Media and system keys

Press a consumer‑control key by name (case‑sensitive). Common names: playpause, nexttrack, prevtrack, stop, mute, volup, voldown, calculator, explorer, brightness_up, brightness_down, browser_home, browser_back, browser_search. See the full media key list.

mediaKey 'playpause'
mediaKey 'volup'

Timing and effects

Sets a global delay inserted after each executed line. Clamped to 0–60000 ms. Only the first defaultdelay in a script takes effect.

defaultdelay 100

Reference tables

Key names

Names are case‑insensitive (except the F in function keys).

GroupNames
Modifiersctrl/leftctrl, shift/leftshift, alt/leftalt, gui/leftgui/win, rightctrl, rightshift, rightalt/altgr, rightgui
Arrowsup, down, left, right
Navigationhome, end, pageup, pagedown, insert, delete
Lockscapslock, numlock, scrolllock
Whitespace / specialenter, esc, backspace, space, tab, menu, prtsc/printscreen, pause
Numpadnumslash, numasterisk, numminus, numplus, numenter, num0–num9, numdot
FunctionF1–F24 (capital F)
Charactersany single character, e.g. a, A, 1, /, $

Media keys

bass_down, bass_up, brightness_down, brightness_up, browser_back, browser_bookmarks, browser_forward, browser_home, browser_refresh, browser_search, browser_stop, calculator, config, consumer_control_configuration, email_reader, explorer, local_machine_browser, mute, nexttrack, pan, playpause, power, prevtrack, radio_buttons, radio_controls, radio_led, radio_slider, reset, sleep, stop, treble_down, treble_up, voldown, volup, www_back, www_bookmarks, www_home, www_search, www_stop.

Wczytywanie indeksu…

↑↓wybierz↵otwórzesczamknij