Page 1 of 1

hotstring fuction doesn't work in last version

Posted: 01 Dec 2018, 10:59
by jmeneses
This code not work in AHK v1.1.30.01 64-bit/Unicode but work fine in v1.1.30.00 64-bit/Unicode

Code: Select all


#NoEnv
#SingleInstance force
SetKeyDelay, -1
#Persistent

#If isExplorerActive() 
Hotstring(":*X:" "T1" , "MisHostrings" ) 
#If

Return

MisHostrings() {
  MsgBox 0x40000, % A_ThisFunc, % "Què!! " A_ThisHotkey
}

IsExplorerActive() {
ControlGetFocus, focusedControl, A
Return (WinActive("ahk_class CabinetWClass")&&(focusedControl=="Edit1"))
}


Re: hotstring fuction doesn't work in last version

Posted: 01 Dec 2018, 11:39
by swagfag
interesting, maybe its related to:
Fixed escape sequences in one-line hotstrings with 'X' option.
i cant get it to trigger labels either:

Code: Select all

Hotstring(":X:asd", "doIt")
Return

doIt:
    MsgBox from label
Return

doIt() {
    MsgBox from func
}
of course u could do Hotstring(":*X:" "T1" , Func("MisHostrings") ) but thats something different entirely

Re: hotstring fuction doesn't work in last version  Topic is solved

Posted: 21 Apr 2019, 17:46
by lexikos
This was fixed in v1.1.30.02 (thanks to Helgef).