#IfWinActive for multiple windows?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
stevesax
Posts: 22
Joined: 12 Jun 2017, 15:25

#IfWinActive for multiple windows?

07 Jul 2017, 06:26

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
stevesax
Posts: 22
Joined: 12 Jun 2017, 15:25

Re: #IfWinActive for multiple windows?

07 Jul 2017, 07:34

Thanks very much, I'll give that a read :)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], MrDoge, peter_ahk and 358 guests