Pause and Wait for User Hotkey Press (Wait Hotkey) in RunMacro
Desktop ModeBrowser ModeRunMacro RunnerRunMacro 3.5+
Wait Hotkey pauses automated workflow execution until a physical keyboard shortcut is pressed, enabling seamless Human-in-the-loop automation.
Dialog & quick setup

- In RunMacro, open the Keyboard › Wait Hotkey command.
- In Hotkey, select or type the target key name (e.g.
enter,f9,space). - Set the Timeout (ms) (enter
0to wait indefinitely until the key is pressed). - Click Save to insert the command into the workflow.
Options reference
Modes & when to use
Desktop Mode
Listens for physical keystrokes via safe Windows low-level keyboard hooks.
Browser Mode
Operates concurrently alongside active browser automation sessions.
RunMacro Runner
Enables operator interaction when executing standalone QMacro packages.
Best for
- Pausing to let the operator type an SMS OTP code or solve a complex visual captcha manually.
- Pausing for user verification of sensitive transaction details before clicking 'Submit'.
- Synchronizing multi-stage interactive workflows requiring operator confirmation between stages.
- Waiting for an operator to position windows or complete two-factor authentication manually.
Use an alternative when
- Simulating keystrokes into input fields (use Type Text or Key Press).
- Fixed idle duration pause without human interaction (use Delay).
Before you run
- Physical keyboard is connected and operational under Windows.
Example workflow
Example: Pause for manual captcha solving and resume on F9
- Workflow fills username and password fields automatically.
- Display a Show Message notice: 'Please solve captcha then press F9'.
- Insert a Wait Hotkey command configured for key
f9with timeout0. - User solves captcha and presses F9 on their keyboard.
- RunMacro detects the F9 event and clicks 'Login' to proceed with the remaining workflow.
Expected result: Workflow execution resumes seamlessly the instant the designated key is pressed.
Tips & limitations
Prefer function keys such as F9 or F10 over common typing keys to prevent accidental trigger while typing text.
Keyboard listener hooks are automatically unhooked and released when the key is detected or if the macro is stopped.
- If the foreground window runs as Administrator while RunMacro runs standard, Windows security may isolate hotkey hooks.
Applies to RunMacro 3.5+ · Desktop Mode & Browser Mode & RunMacro Runner · Windows 10/11
