Docs

RunMacro Documentation

Learn RunMacro from basics to advanced.

Everything you need to start and master RunMacro — from basic commands to advanced automation workflows.

RunMacro robot
Docs Window IF Window Exists
🔍 Window

Branch on whether a window exists in RunMacro

What it does

The IF Window Exists command checks whether one (or more) windows with given titles are open, retrying until found. If found it jumps to the IF label (and can bring it forward); if not, it jumps to ELSE.

When to use it

  • Wait for an app/dialog to open before acting.
  • Verify a successful login (main window appears).
  • Branch differently depending on which window is open.

Configuration steps

  1. Add a Window › IF Window Exists command.
  2. Pick one or more windows/titles to check.
  3. Set retries and delay between tries if it opens slowly.
  4. (Optional) enable bring to front when found.
  5. Set IF/ELSE labels. Save.

Every option explained

Titles to check (one or more)

The windows to look for; matching any title counts as existing. Wildcards supported.

Retries + delay between tries (ms)

Repeats the check until a window appears or retries run out.

Bring to front when found

When found, restore and focus that window.

IF label / ELSE label

If it exists jump to IF; if not found after retries jump to ELSE.

Real example

Example: wait for the login window then continue

  1. IF Window Exists, title contains "Sign in", 25 retries.
  2. Enable bring to front when found.
  3. IF label = opened for the form steps; ELSE = error.

Tips & common mistakes

This is a better "wait for the right moment" than a fixed delay — it only continues once the window truly appears.
Create the matching Label so the jump works.
RunMacro robot

Ready to automate smarter?

Download RunMacro and start automating your desktop, browser, and business workflows today.