EDIT: I Just confirmed LButton also doesn't work. It seems that a While loop somehow blocks Mouse button hotkeys, but not keyboard hotkeys.. I'm confused
Code: Select all
#SingleInstance, force
#Persistent
#NoEnv
WaitingForInput := 0
Menu, MyMenu, Add, Test, Test
return
Test:
WaitingForInput := 1
While (WaitingForInput = 1) {
}
return
~Space::
~RButton::
if (WaitingForInput = 1) {
MsgBox Fired
} else if (A_PriorHotKey = A_ThisHotKey and A_TimeSincePriorHotkey < 500) {
Sleep 0
Send {Esc}
Menu, MyMenu, Show
}
Return