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

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
- Add a Window › Close Window command.
- Pick the target window from the list (or type the title, use
*for partial matches). - Save. On run, RunMacro sends a close request to that window.
Every option explained
Real example
Example: close a Notepad window
- Add Close Window.
- Choose the window whose title contains "Notepad".
- 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