Foreground App
Yes when the app you're using right now is the one you name.
Using it
On a trigger it's App in front, under Only when. Hotkey F8 with App in front: chrome.exe works only in Chrome; everywhere else the key reaches the app as usual.
In the steps, add If and choose it: the steps under Then run when it matches, those under Otherwise when it doesn't.
Variations
- Several apps at once: All / Any.
- Running, even if it's not in front: App Is Running.
- A game in full screen: Full-Screen App In Front.
Settings
| Setting | Starts as | What it does |
|---|---|---|
Process name ${} |
notepad.exe |
Matches is true when this app is in front, such as notepad.exe. Leave it empty to only read the app in front. |
Settings marked ${} take variables.
Outputs
| Matches | True when the app in Process name is in front. |
|---|---|
| App | The name of the app in front, such as notepad.exe. |
| Title | The title of the window in front. |
| Path | The full path of the program in front, such as C:\Windows\notepad.exe. |
More in Apps & windows: Virtual Desktop, Window Info, Element Exists
Build macros with Foreground App in MacroWin. Free to download, no account needed. Windows 10 and 11.
Download