I'm trying to copy a feature in some linux distros that emulates a middle click when the right and left click buttons are pressed simultaneously (or very close to) and this is what I've got so far. The first two sections are just to make the right and left click function normally, and they do, but when the last two sections are present, Pressing and holding either the left or right button (when dragging for example) doesn't work. I think this is because it's waiting for the other button to be pressed for a middle click but i'm not sure how to work around this. Plz help
Code: Select all
LButton::
MouseClick, left,,,,, D
KeyWait, LButton
MouseClick, left,,,,, U
return
RButton::
MouseClick, right,,,,, D
KeyWait, RButton
MouseClick, right,,,,, U
return
RButton & LButton::
MouseClick, middle,,,,, D
KeyWait, LButton
MouseClick, middle,,,,, U
return
LButton & RButton::
MouseClick, middle,,,,, D
KeyWait, LButton
MouseClick, middle,,,,, U
return