@Rohwedder and gregster
Whoa, your approach is totally different from anything I could have ever dreamed up.
And it works! Hurrah!
Many thanks, also to gregster for pointing out my syntax error.
@wolf_II
Your solution works nicely, too.
And it's close to one of my attempted routes.
Could someone please spot my syntax error, I'd like to learn from my mistakes:
Code: Select all
#If WinActive("ahk_exe thunderbird.exe") and not WinActive("Write" or "Address")
#If WinActive("ahk_exe thunderbird.exe") and (!WinActive("Write" or "Address"))
May I ask what's wrong - in general logic or syntax-wise - using the ExcludeText parameter:
Code: Select all
WinActive(WinTitle , WinText, ExcludeTitle, ExcludeText)
WinActive("ahk_exe thunderbird.exe", , "Write")
WinActive("ahk_exe thunderbird.exe", , ("Write" or "Address"))
Using ExcludeText - is that the wrong track to start with, or is it just a matter of getting the syntax right?