Hi. Thanks to members, I now have my script almost working as I would like, with 1 issue I'm unable to get right.
I have the #IfWinActive in the script to allow for keys to only be used within a certain window, but I need some of the keys to be active in more than 1 window. E.g:
I have control comma, which needs to work in a window called "Komplete Kontrol" and "Preferences". So not sure what the syntax is to allow for both of these.
I've tried:
#IfWinActive, Komplete Kontrol
#IfWinActive, Preferences
and
#IfWinActive, Komplete Kontrol
|| Preferences
also:
#IfWinActive, (IsKK())
|| (IsKKPreferences()) ; which are functions I've done in the script
Any ideas on what syntax will allow for both these windows to be allowed? THX steve.
#IfWinActive, Komplete Kontrol
#IfWinActive for multiple windows?
Re: #IfWinActive for multiple windows?
Create a group https://autohotkey.com/docs/commands/GroupAdd.htm and use
#IfWinActive ahk_group MyGroup
#IfWinActive ahk_group MyGroup
Re: #IfWinActive for multiple windows?
Thanks very much, I'll give that a read