[ahk_h v2 Bug]SetTitleMatchMode #IfWinActive
Posted: 21 Oct 2016, 18:13
SetTitleMatchMode seems to be ineffective for #IfWinActive hotkeys.
Looking in sourcecode it seems that g_default.TitleMatchMode is not set.
Example:
Looking in sourcecode it seems that g_default.TitleMatchMode is not set.
Example:
Code: Select all
SetTitleMatchMode, 2
#IfWinActive Untitled - Notepad ahk_class Notepad
^a::MsgBox % A_ThisHotkey ; works
#IfWinActive Untitled ahk_class Notepad
^b::MsgBox % A_ThisHotkey ; doesn't work
#IfWinActive
return