ZeroTrace HID
Keyboard Injection
Type strings, press keys, send modifier combinations
The core HID primitive. Every script that interacts with a target host uses these.
Primitives
write "string" # type without trailing newline
writeLn "string" # type, then press Enter
press "ctrl shift esc" # send modifier combo
delay 500 # ms between commands
Speed and accuracy
| Block type | Behavior |
|---|---|
write / writeLn | Maximum speed (~250 chars/s on typical hosts). |
accurateWrite <ms> | Per-character settle delay; use when host drops keystrokes. |
delayedWrite <ms> | Built-in inter-character delay; useful against rate-limited input. |
Hosts in slow-input mode (RDP sessions, throttled VMs, some kiosks) need accurateWrite to avoid dropped characters.
Layout
Set the keyboard layout in Settings → Keyboard Layout or per-script with layout "us" / layout "de" / etc. See Multi-language Support for the full list of 18+ layouts. Wrong layout produces wrong special characters (@ becomes " etc.).
Modifiers
press "ctrl c" # Copy
press "ctrl shift t" # Reopen closed tab
press "win r" # Run dialog (Windows)
press "cmd space" # Spotlight (macOS)
The full key reference lives in the Scripting Language → Keyboard page.