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?
Match class, but only if no window Title Topic is solved
Re: Match class, but only if no window Title Topic is solved
Hallo,
run Notepad and try:The first press of key Q deletes the title, the second press shows the MsgBox
run Notepad and try:
Code: Select all
SetTitleMatchMode, RegEx
#IfWinActive ^$ ahk_class Notepad
q::MsgBox, Notepad without title!
#IfWinActive ahk_class Notepad
q::WinSetTitle ahk_class Notepad,,,
Re: Match class, but only if no window Title
Success! It works.
Much obliged.
Much obliged.