Match class, but only if no window Title
Posted: 13 Jun 2019, 06:25
I'm trying to match a specific class, but only when that class has no window title. If the same class is detected but it does have a window title, then I want it ignored (regardless of what the title is).
How do I structure the command for this?
Re: Match class, but only if no window Title Topic is solved
Posted: 13 Jun 2019, 07:41
run Notepad and try:
Code: Select all
#IfWinActive ^$ ahk_class Notepad
q::MsgBox, Notepad without title!
#IfWinActive ahk_class Notepad
q::WinSetTitle ahk_class Notepad,,,
The first press of key Q deletes the title, the second press shows the MsgBox
Re: Match class, but only if no window Title
Posted: 14 Jun 2019, 07:55
Success! It works.