Code: Select all
SetTitleMatchMode, RegEx
WinWaitActive, ahk_class (?:Ableton Live Window Class|bitwig)
Code: Select all
WinWaitNotActive, ahk_class (?=Ableton Live Window Class)(?=bitwig)
Code: Select all
SetTitleMatchMode, RegEx
WinWaitActive, ahk_class (?:Ableton Live Window Class|bitwig)
Code: Select all
WinWaitNotActive, ahk_class (?=Ableton Live Window Class)(?=bitwig)
Code: Select all
WinWaitNotActive, ahk_class (Ableton Live Window Class|bitwig)
I'm trying for WinWaitNotactive to return true and proceed with the script when neither Ableton nor Bitwig are the active window (I mean, when the active window is something other than Ableton or Bitwig). Doesn't matter which ahk_class is the active window, just as long as it's not one of those to.boiler wrote: ↑01 Jun 2020, 14:14You have two positive look-aheads meaning it will match when both are found (and not sure look-aheads are what you want). Aren't you just trying to allow one or the other like this? :Code: Select all
WinWaitNotActive, ahk_class (Ableton Live Window Class|bitwig)
Code: Select all
WinWaitNotActive, ahk_class (?:Ableton Live Window Class&bitwig)
Code: Select all
?:
Code: Select all
WinWaitNotActive, ahk_class (?:Ableton Live Window Class|bitwig)
Users browsing this forum: Google [Bot], Marium0505, mcl and 343 guests