Hello
What is the syntax for WinTitle?
I need to enable a hotkey only when a specific window with a title (Something...) is not active (the ... can be followed with any text).
Thanks!
How to specify WinTitle? Topic is solved
Re: How to specify WinTitle?
Thanks, maybe I wasn't clear enough but this does not seem to help at all unless I miss something.
So I have:
I need to add a parameter "the active window does not have a title starting with "Something" and any other text after that, how do I do that?
So I have:
Code: Select all
#If (WinActive("ahk_exe chrome.exe") or WinActive("ahk_exe msedge.exe")) and not WinTitle("Something*")
A::B
Re: How to specify WinTitle? Topic is solved
WinTitle is not an AHK function, but that is already noted in the error message that appears with your script.
Explained: WinTitle • SetTitleMatchMode
Code: Select all
#If (WinActive("ahk_exe chrome.exe") or WinActive("ahk_exe msedge.exe")) and !WinActive("Something")
a::b
#If