The only place in docs that I can find to possibly apply here is "Limitations: ... 2) An "Up" hotkey without a normal/down counterpart hotkey will completely take over that key to prevent it from getting stuck down.". In this case, though, it seems there's a matching down counterpart with a common conditional function.
Is there something I'm overlooking?
Code: Select all
#Requires AutoHotkey v1.1
#if condfunc()
hotkey, if, condfunc()
fn := func("triggerfunc")
hotkey, #r, % fn ; Win-R down
hotkey, #r up, % fn ; Win-R up
hotkey, if
return
condfunc()
{
condition := a_thishotkey == "#r up"
if (a_thishotkey == "#r")
{
tooltip % "Returning " condition
}
return condition
}
triggerfunc()
{
if (a_thishotkey == "#r")
{
msgbox % a_thishotkey ; Never displayed, so the down event should get passed through
}
}
Code: Select all
#=Disabled via #IfWinActive/Exist
Code: Select all
5B 15B d 0.52 LWin
52 013 # d 0.00 r
52 013 h u 0.16 r
5B 15B u 0.11 LWin