Page 1 of 1

[ahk_h v2 Bug]SetTitleMatchMode #IfWinActive

Posted: 21 Oct 2016, 18:13
by HotKeyIt
SetTitleMatchMode seems to be ineffective for #IfWinActive hotkeys.

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

Re: [ahk v2 Bug]SetTitleMatchMode #IfWinActive

Posted: 21 Oct 2016, 18:44
by egocarib
Haven't tried it with the latest build, but it works fine with 2.0-a075-02fab78, which I downloaded about a month ago.

Re: [ahk v2 Bug]SetTitleMatchMode #IfWinActive

Posted: 21 Oct 2016, 19:17
by guest3456
i think this is an AHK_H bug only

works for me in normal AHK_L v2.0-a076

Re: [ahk v2 Bug]SetTitleMatchMode #IfWinActive

Posted: 22 Oct 2016, 03:45
by HotKeyIt
That is odd, testing yesterday it did not work in v2.a076 for me aswell but now it works :?
I will check and fix AHK_H v2.076.

Re: [ahk_h v2 Bug]SetTitleMatchMode #IfWinActive

Posted: 22 Oct 2016, 04:18
by HotKeyIt
This has been fixed now ;)