Avoiding double tap on trackball buttons

Hi
I use the trackball between the two halves of the keyboard, and have mapped its right button to do a middle-mouse click (the left one is a no-op), while the long white bars on either side are mapped to left and right mouse.

I’m happy with this arrangement except that the trackball buttons are so much lighter (more sensitive) than the bars, so it’s difficult to calibrate the pressure of my fingers to work reliably with both types of buttons. I use the middle mouse for pasting. Most of the time the trackball button gets hit twice in quick succession instead of just once, so my string gets pasted twice.

Is there a way to inhibit the second signal, so that if the trackball button is hit twice in quick succession (say within 200ms or something like that) the second click is ignored?

Thank you

Silvio Levy

You can bind a macro to that button and use something like:

ifDoubletap break
tapKey mouseBtnMiddle

This should let the first click register as a mouseBtnMiddle, but a subsequent second tap should trigger the ifDoubleTap and stop the macro without sending any button press.

3 Likes

Thank you so much. It didn’t recognize the spelling ifDoubleTap but from the reference manual I corrected it to ifDoubletap, and it works like a charm!
This is in Agent version 3.2.2.
Best wishes,
Silvio

3 Likes

Sorry, yes, typo! I have corrected the previous comment. I am happy to read you got it to work.