I'd like to remap the middle mouse button to double-click using autohotkey.

A simple remapping (4th mutton -> middle button) worked fine using XButton1::MButton but I couldn't find a way to remap a button to send a left-button doubleclick.

I've already tried MButton::LButton 2 and MButton::LButton & LButton but those didn't work (apparently this syntax is only used in different AHK statements but not in remappings).

link|improve this question

73% accept rate
feedback

2 Answers

up vote 2 down vote accepted

Nevermind, found the answer:

MButton::Click 2
link|improve this answer
If it's the answer, you can mark it as such with the green checkmark. – ranomore Apr 21 '11 at 22:49
You have to wait 2 days before you can accept your own answer. – ThiefMaster Apr 22 '11 at 7:39
Oops! Didn't know that. – ranomore Apr 22 '11 at 14:58
feedback

This will specify which button you want to press:

+LButton::
send {LButton 2}
Return

LButton is left click MButton is middle click RButton is right click

link|improve this answer
I already had a valid answer ;) Thanks anyway – ThiefMaster Jul 3 '11 at 10:12
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.