AutoHotKey
AutoHotKey is an open source macro creation utility for Windows. As the name suggests, you can create macros for specific keyboard shortcuts.
AutoHotKey can be downloaded at: https://www.autohotkey.com/download/
Since AutoHotKey is Windows-only, for Linux, consider the autokey project (https://github.com/autokey/autokey)
Fixing unintended mouse double click
I am currently using a cyborg R.A.T. 7 on my desktop which, after less than a year, has started exhibiting signs of wear. This is evident from the fact that a simple click of the wheel will at around 60% of the time send a double click instead. This is due to the membranes (ie: the switches) wearing away causing it to be faulty. Naturally, this is driving me completely nuts since opening a hyperlink using the mouse wheel will, most likely, open the hyperlink twice.
Aside from fixing the problem by sending it back to the manufacturer, it's possible to just 'patch' up the problem using AutoHotKey (http://autohotkey.com/). The program allows you to programmatically control actions sent by your mouse or keyboard. In order to fix the problem described above, run the following has script:
MButton::
If (A_TimeSincePriorHotkey < 150)
Return
Send {MButton}
Return
The above will simply check whether the double click is below 150ms. If it is below 150ms, the double click is effectively ignored as it's improbable that any human can click that fast. You may raise or lower this depending non your requirements, though a higher number for the middle button wouldn't hurt since it's rare to ever need to double click the wheel anyway.
You may want to replace MButton
with LButton
or RButton
as well in case your mouse is defective on the left or right button. For more information on different keys, see http://www.autohotkey.com/docs/KeyList.htm
Oh, and I do not recommend the Cyborg mouse at all. Aside from its modern appearance, it is not a very good mouse. It's a little uncomfortable to use despite the fact that it is 'customizable', and I miss the free scrolling mode which my Logitech G500 has. My G500 after 3 years of use still seems to work flawlessly.
See also
- Download: https://www.autohotkey.com/download/
- GitHub Mirror: https://github.com/Lexikos/AutoHotkey_L