Foreground Changed
Starts the macro whenever something else is in front: another app, another window title (also when another app or window comes to the front), or another program file (also another copy of an app with the same name, such as in another folder).
Settings
| Setting | Starts as | What it does |
|---|---|---|
| Starts when | The app changes |
Outputs
| App | The app in front now, such as chrome.exe. |
|---|---|
| Title | The title of the window in front now. |
| Path | The full path of the program in front now, such as C:\Windows\notepad.exe. |
| Previous app | The app that was in front before. |
| Previous title | The title of the window that was in front before. |
| Previous path | The full path of the program that was in front before. |
More in Apps & windows: Full-Screen App, Virtual Desktop Changed, App Event
Build macros with Foreground Changed in MacroWin. Free to download, no account needed. Windows 10 and 11.
Download