I'm trying to figure out how I can set one hotstring to trigger for only two specific ahk_class.
For the long way, I guess it goes something like this:
Code: Select all
#IfWinActive ahk_class Notepad
:*:hi::
SendInput Hello there.
Return
#IfWinActive ahk_class MozillaWindowClass
:*:hi::
SendInput Hello there.
Return
Code: Select all
(#IfWinActive ahk_class Notepad) || (#IfWinActive ahk_class PuTTY)
:*:hi::
SendInput Hello there.
Return