I'm new to this wonderful magic and thank you so much for providing such helpful comments!
I have a problem with some of my mouse keys. I think the problem is with the mouse itself, but can't be sure since mousehook shows that everything is in order. I was able to define click and double-click triggers to XButton1 (original try attached). While they work perfectly fine with this key, every time I try to trigger another combination (such as XButton1 & RButton), the double clicking option of the XButton is also activated.
I want to keep the combination (XButton1 & RButton) without activating the other trigger (XButton1 double click).
Thinking this way wrong, I've created a new variable (BCombination1, poor fix ahead) that was supposed to help me. Though I was able to fix the double triggering, I left out without any option to activate it later on :/.
would appreciate any help:
the original code:
Code: Select all
; XButton1
XButton1::
If (A_TimeSincePriorHotkey<1500)
MsgBox, XButton1 Double Click
Else
MsgBox, XButton1
Return
XButton1 & RButton::
MsgBox, RButton & XButton1
Return
Code: Select all
; XButton1
XButton1 & RButton::
BCombination1 := "na"
MsgBox, RButton & XButton1
Sleep 3000
BCombination1 := "a"
Return
XButton1::
If (A_TimeSincePriorHotkey<1500) & BCombination1:= "a"
MsgBox, XButton1 Double Click
Return
If BCombination1:= "a"
MsgBox, XButton1
Return