Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

up vote 5 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:

+LButton::
send {LButton 2}
Return

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

 
discard

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.