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

Find a window by a keyword in its title in RunMacro
What it does
The IF Window Title command scans all open windows and checks whether any title contains your keyword. It is a quick, flexible check that does not require picking one exact window.
When to use it
- You just need to know if any window contains a word.
- Titles change a lot; only the keyword is stable.
- Quickly check state by window name.
Configuration steps
- Add a Window › IF Window Title command.
- Enter the keyword to find in titles.
- Set retries and delay.
- Set IF/ELSE labels. Save.
Every option explained
Real example
Example: detect a "YouTube" window
- IF Window Title, keyword "YouTube".
- IF label =
has_youtube, ELSE =none. - Put handling steps under each label.
Tips & common mistakes
Unlike IF Window Exists (targets a specific window and can focus it), this one only scans for a keyword and does not switch focus.
RunMacro