ZeroTrace HID
Timed Execution
delay, jittered pauses, and rate-limited payloads
delay pauses script execution for a number of milliseconds. randomDelay <minMs> <maxMs> picks a random pause in a range for less mechanical timing.
writeLn 'first'
delay 1000
writeLn 'second'
Patterns
Wait for an app to open
comboKey 'win+r'
delay 800 # let Run dialog open
writeLn 'cmd'
delay 500 # let cmd window open
writeLn 'whoami'
Rate-limit repeated attempts
repeatStart 5
writeLn 'attempt'
delay 30000 # 30 s between attempts
repeatEnd
Jittered pause
randomDelay 2000 8000 # wait a random 2–8 s
Limits
Delay is capped at one hour
The maximum per delay is 3,600,000 ms (1 hour); larger values are clamped to that cap. Chain multiple delay commands for longer waits. Negative values are treated as 0. randomDelay is subject to the same 1-hour cap.
delay is blocking — no other script commands run during the wait. To fire a payload some time after power-on without an RTC, autostart a script that begins with a delay, then power the device at the target site.