Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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).

share|improve this question
up vote 6 down vote accepted

Nevermind, found the answer:

MButton::Click 2
share|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

This will specify which button you want to press:

send {LButton 2}

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

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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