DocsFlowSmart Desktop Wait

Wait for Desktop Elements to Appear or Vanish (Smart Desktop Wait) in RunMacro

Desktop ModeRunMacro 3.5+

Smart Desktop Wait is an intelligent synchronization command in RunMacro that waits for desktop elements to appear, vanish, or become enabled via Windows UI Automation.

Dialog & quick setup

RunMacro Smart Desktop Wait command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Smart Desktop Wait command in RunMacro.
  1. In RunMacro, open the Flow › Smart Desktop Wait command.
  2. Click 🎯 Pick Element and hover over the element to monitor.
  3. Select Wait Mode: appear, vanish, enabled, or disabled.
  4. Set the Timeout (seconds) threshold (default 30 seconds).
  5. Choose behavior under On Timeout: stop, goto, or continue.
  6. If jumping to a label, provide the destination in Timeout Label (e.g. lbl_handle_failure).
  7. Click Save to insert the wait condition.

Options reference

🎯 Pick Element

Target picker overlay to capture element properties for polling.

Wait Mode

appear, vanish, enabled, or disabled.

Timeout (sec)

Maximum time in seconds before triggering timeout handling policies (default 30.0s).

On Timeout

Action on timeout expiration: stop (halt workflow), goto (jump to error label), or continue (proceed silently).

Timeout Label

Target Label anchor when On Timeout is set to 'goto'.

Modes & when to use

Desktop Mode

Polls element state via background UIA queries with negligible CPU load.

Best for

  • Waiting for ERP or accounting software to finish populating a data table before initiating exports.
  • Waiting for print dialogs or save-as file windows to fully materialize on screen.
  • Waiting for progress bars or loading spinners to vanish completely before proceeding.
  • Waiting for a 'Confirm Payment' button to transition from Disabled (gray) to Enabled (clickable).

Use an alternative when

  • Waiting for web elements in browsers (use Smart HTML Wait).
  • Fixed rest pause between non-UI actions (use Delay).
Before you run
  • Target element can be identified via the Pick Element tool.

Example workflow

Example: Wait for save progress bar to vanish before closing app

  1. Add a Smart Desktop Wait command after clicking 'Save'.
  2. Pick the 'Saving data...' progress bar control.
  3. Set Wait Mode: vanish with a 60-second timeout.
  4. As soon as the indicator disappears, the workflow immediately proceeds to close the app safely.
Expected result: Macro execution resumes instantaneously the millisecond the element reaches target state.

Tips & limitations

Replacing static 5-10 second delays with Smart Desktop Wait accelerates workflows by 40-70% by eliminating wasted wait times.
Always configure On Timeout: goto with an error recovery label to handle app crashes or network stalls gracefully.
  • If the window is minimized to taskbar, some UIA properties may suspend updates until restored.

Applies to RunMacro 3.5+ · Desktop Mode · 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.