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 Close Window
❌ Window

Automatically close a window in RunMacro

What it does

The Close Window command finds a window by its title and sends a close request (like clicking the X). Use it to tidy up windows or shut an app during a workflow.

When to use it

  • Close a pop-up ad/notification window.
  • Shut an app after finishing.
  • Clear an old window before opening a new one.

Configuration steps

  1. Add a Window › Close Window command.
  2. Pick the target window from the list (or type the title, use * for partial matches).
  3. Save. On run, RunMacro sends a close request to that window.

Every option explained

Window title

The window to close. Pick from open windows or type it; supports * and ? wildcards.

Real example

Example: close a Notepad window

  1. Add Close Window.
  2. Choose the window whose title contains "Notepad".
  3. Save and run — the Notepad window closes.

Tips & common mistakes

Use * when the title varies, e.g. *Notepad to match any open file.
If the app asks to save on close, add a dialog-handling step (Click/Key) after this command.
RunMacro robot

Ready to automate smarter?

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