I don't suppose it would go something like this?
Code: Select all
If WinExist("Photoshop.exe")
WinActivate
Else
WinMinimize
Code: Select all
If WinExist("Photoshop.exe")
WinActivate
Else
WinMinimize
Thanks!Tom wrote: ↑Mar 25th, ’20, 18:03 There are several possibilities. I suggest you study the following AutoHotkey commands:
https://www.autohotkey.com/docs/commands/WinExist.htm
https://www.autohotkey.com/docs/misc/WinTitle.htm
Code: Select all
if WinExist("ahk_exe Photoshop.exe")
WinActivate, ahk_exe Photoshop.exe
else ;needs to be reworked
WinMinimize, A