DocsKeyboardWait Hotkey

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

RunMacro Wait Hotkey command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Wait Hotkey command in RunMacro.
  1. In RunMacro, open the Keyboard › Wait Hotkey command.
  2. In Hotkey, select or type the target key name (e.g. enter, f9, space).
  3. Set the Timeout (ms) (enter 0 to wait indefinitely until the key is pressed).
  4. Click Save to insert the command into the workflow.

Options reference

Hotkey

Name of the target physical key to listen for: enter, space, f1–f12, esc, tab, or alphanumeric characters.

Timeout (ms)

Maximum duration in milliseconds to await the keypress. Enter 0 to wait indefinitely.

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

  1. Workflow fills username and password fields automatically.
  2. Display a Show Message notice: 'Please solve captcha then press F9'.
  3. Insert a Wait Hotkey command configured for key f9 with timeout 0.
  4. User solves captcha and presses F9 on their keyboard.
  5. 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

RunMacro robot

Robots do the work. Your time is yours.

Create a robot in minutes, no coding needed. Reliable execution, remote management, transparent costs — and you always stay in control.