Brian
Brian

Reputation: 35

How to open context menu with right-click down instead of up?

I've been looking, but I can't seem to find how to change the mouse behavior to allow for pressing the right-mouse button down to open the context menu. I would like to be able to press down the right-mouse button to have the menu open, then drag the cursor to a selection and release the right-mouse button, opening the selection. I'm looking to have this behavior only while Firefox is in focus.

Something like:

If Firefox is in focus

*Pressing down on the right-mouse button causes a right mouse up event
*Releasing the right-mouse button causes a right mouse click where the cursor is

Is that possible...?

Thank you

Upvotes: 1

Views: 775

Answers (1)

Forivin
Forivin

Reputation: 15488

The question is pretty old, but the answer is realy simple:

#IfWinActive, ahk_class MozillaWindowClass
  *$RButton::
    SendInput, {RButton Up}
  Return
  RButton Up::
    SendInput, {LButton}
  Return

Upvotes: 1

Related Questions