In autohotkey's #IfWinActive
statement, is it possible to specify multiple criteria? specifically, ahk_class
and ahk_exe
? eg, something similar to
#IfWinActive ahk_exe test.exe && ahk_class Test
; window specific stuff
#IfWinActive ; Test
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityIn autohotkey's #IfWinActive
statement, is it possible to specify multiple criteria? specifically, ahk_class
and ahk_exe
? eg, something similar to
#IfWinActive ahk_exe test.exe && ahk_class Test
; window specific stuff
#IfWinActive ; Test
Within the WinTitle parameter you can specify more than one criterion for narrowing down the search of a specific window. See Multiple Criteria.
#IfWinActive ahk_exe test.exe ahk_class Test
; window specific definition of hotkeys or/and hotstrings
#IfWinActive ; turn off context sensitivity
https://autohotkey.com/docs/commands/_IfWinActive.htm
F1::
IfWinActive ahk_exe test.exe ahk_class Test
; do window specific stuff
return