Hey my middle click button is kinda dead so I'm looking for a solution using Autohotkey.
What I want to do is send a middle click whenever I double right click, but I haven't been able to find a reliable solution so far.
Any suggestions?
Maybe not the most elegant way, but you could try this:
Modyfied from: http://www.autohotkey.com/board/topic/16321-map-a-double-left-mouse-click-to-a-single-key/
$RButton::
if clicks > 0
clicks++
else
{
clicks := 1
SetTimer, ClickWait, 400
}
return
ClickWait:
SetTimer, ClickWait, off
if clicks = 1
{
Click, Right
}
else
{
Click, Middle
}
clicks := 0
return
When you don't mind having the Right-Click menu appear, you can use this code, which sends the Right-Click straight through and corrects it later.
~RButton::
if (A_PriorHotkey <> "~RButton" OR A_TimeSincePriorHotkey > 600)
Return ; No double click, so stop!
Sleep, 100
Send, {Esc}
Sleep, 100
Click, Middle
return