I've tried quite a few scripts and I wish I saved them, I've just overwritten the same one numerous times. At this point I feel like I've used a better one than this that was like 1 minor tweak away from being exactly what I needed, but I wasn't sure what to modify to get it to work.
These that I'm using now seem to kind of work, but I'm hoping someone can help me get something better. Basically I never, ever click my back/forward button very quickly at all, so I never need to send more than 1 click in less than 500ms, so I want it to prevent more than 1 click being sent it it detects 1+ in a span of less than 500ms.
Here's what I have so far (I realize this might be not even close to what I need, no judgment please):
Code: Select all
*XButton1::
If (A_PriorHotkey=A_ThisHotkey && A_TimeSincePriorHotkey < 100) ;hyperclick
Return
sendinput {Blind}{XButton1 down}
KeyWait, XButton1
sendinput {Blind}{XButton1 up}
Return
Code: Select all
*XButton2::
If (A_PriorHotkey=A_ThisHotkey && A_TimeSincePriorHotkey < 100) ;hyperclick
Return
sendinput {Blind}{XButton2 down}
KeyWait, XButton2
sendinput {Blind}{XButton2 up}
Return