[ahk_h v2 Bug]SetTitleMatchMode #IfWinActive

Discuss the development of AutoHotkey_H
HotKeyIt
Posts: 1549
Joined: 29 Sep 2013, 18:35
Contact:

[ahk_h v2 Bug]SetTitleMatchMode #IfWinActive

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:

Code: [Select all] [Download] GeSHi © Codebox Plus

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
egocarib
Posts: 86
Joined: 21 May 2015, 18:21

Re: [ahk v2 Bug]SetTitleMatchMode #IfWinActive

21 Oct 2016, 18:44

Haven't tried it with the latest build, but it works fine with 2.0-a075-02fab78, which I downloaded about a month ago.
guest3456
Posts: 2076
Joined: 09 Oct 2013, 10:31

Re: [ahk v2 Bug]SetTitleMatchMode #IfWinActive

21 Oct 2016, 19:17

i think this is an AHK_H bug only

works for me in normal AHK_L v2.0-a076

HotKeyIt
Posts: 1549
Joined: 29 Sep 2013, 18:35
Contact:

Re: [ahk v2 Bug]SetTitleMatchMode #IfWinActive

22 Oct 2016, 03:45

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.

Return to “Development”

Who is online

Users browsing this forum: No registered users and 1 guest