It must be the weirdest problem...
but it's really useful for me !
Here is my code:
Code: Select all
~RButton::
RB++
SetTimer,Clean,-250
MouseGetPos,cx,cy ;~ currentX,currentY
if(RB=2)
{
RB:=0
if(...)
{
Send,{Esc Down}
Sleep,1
Send,{Esc Up}
funcFoo()
}
}
else if RB=1
MouseGetPos,px,py ;~ previousX,previousY
Exit
Clean:
RB:=0
Exit
![Wtf? :wtf:](./images/smilies/icon_wtf.gif)
and the -
Code: Select all
Send,{Esc Down}
Sleep,1
Send,{Esc Up}
( I did not even know how to make a if condition to detect a context-menu is "Exist", so I make this hotkey cancel always. )
and then after closed the context-menu then call the "funcFoo()".
That's all, but ... sometime the Escape mess up something( Cancel the wrong stuff or trigger built-in hotkeys ).
Please help me
![Hit my head against the wall. :headwall:](./images/smilies/headwall.gif)