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

- In RunMacro, open the Flow › Smart Desktop Wait command.
- Click 🎯 Pick Element and hover over the element to monitor.
- Select Wait Mode: appear, vanish, enabled, or disabled.
- Set the Timeout (seconds) threshold (default 30 seconds).
- Choose behavior under On Timeout: stop, goto, or continue.
- If jumping to a label, provide the destination in Timeout Label (e.g.
lbl_handle_failure). - Click Save to insert the wait condition.
Options reference
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
- Add a Smart Desktop Wait command after clicking 'Save'.
- Pick the 'Saving data...' progress bar control.
- Set Wait Mode: vanish with a 60-second timeout.
- 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
