Page 1 of 1
Toggling process, rather than window
Posted: Mar 24th, ’20, 15:44
by Oblomov
Is it possible to toggle the process, rather than window? Photoshop for example, has window name based on file name
I don't suppose it would go something like this?
Code: Select all
If WinExist("Photoshop.exe")
WinActivate
Else
WinMinimize
Re: Toggling process, rather than window
Posted: Mar 25th, ’20, 13:57
by Wagoner
Did you try looking for the files manually, Oblomov?
Re: Toggling process, rather than window
Posted: Mar 25th, ’20, 18:03
by Tom
Re: Toggling process, rather than window
Posted: Mar 25th, ’20, 18:20
by Oblomov
Thanks!
This worked for me
Code: Select all
if WinExist("ahk_exe Photoshop.exe")
WinActivate, ahk_exe Photoshop.exe
else ;needs to be reworked
WinMinimize, A
Not really sure how to get it to minimize once toggled, however
https://www.autohotkey.com/docs/command ... nimize.htm
Doesn't seem to be of much help