DocsWindowWindow Watcher

Watch for a window in the background and act when it appears (RunMacro)

Desktop ModeRunMacro 3.5+

Window Watcher periodically scans for a window title while the workflow runs; on a match it can bring it forward, then Stop, Pause, Close Window, Run Macro, or Go to Label.

Dialog & quick setup

RunMacro Window Watcher command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Window Watcher command in RunMacro.
  1. Add a Window › Window Watcher command.
  2. Enter one or more window titles to watch.
  3. Set the scan interval (seconds).
  4. Choose whether to bring the window forward when found.
  5. Pick an Action: Stop, Pause, Close Window, Run Macro, or Go to Label.
  6. For Run Macro, point to the handler macro file; for Go to Label, enter the label name. Save.

Options reference

Window title(s) to watch

One or more window titles. The watcher scans them in order and stops at the first match.

Scan interval (seconds)

How often to scan while the workflow runs. Default is 10 seconds.

Bring forward when found

If on, the matched window is restored and brought to the foreground before the action runs.

Action

What to do on a match: Stop, Pause, Close Window, Run Macro, or Go to Label.

Handler macro / Target label

Path to a handler macro (when Action = Run Macro) or a label name (when Action = Go to Label).

Modes & when to use

Desktop Mode

Watches system windows on Windows.

Best for

  • Auto-close an unexpected dialog or pop-up when it appears mid-run.
  • Stop or pause the workflow when an error window shows up.
  • Run a dedicated handler macro when a target window is seen.
  • Jump to a handling branch when a named window is detected.

Use an alternative when

  • You only need a one-time check and branch — use IF Window Exists.
  • The window has no stable title to identify it.
Before you run
  • You know the exact (or partial) title of the window to watch.
  • Running in Desktop mode.

Example workflow

Example: auto-close an update pop-up

  1. Window Watcher: title = "Update Available", scan every 5 seconds.
  2. Enable "Bring forward", Action = Close Window.
  3. Run your main workflow — when the pop-up appears, the watcher closes it.
Expected result: While the workflow runs, when a matching window appears RunMacro performs the configured action.

Tips & limitations

This command holds the configuration; the periodic scanning is performed by the macro runner in the background while the workflow runs.
Unlike IF Window Exists (a one-time check that branches), the Watcher monitors continuously throughout the run.
  • Detection is title-based; highly variable titles are hard to match.
  • The scan interval is in seconds, so there is some latency.

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.