AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

simple? map right-click to middle click and viceversa

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
urlwolf



Joined: 16 Mar 2006
Posts: 112

PostPosted: Sun Aug 30, 2009 2:18 am    Post subject: simple? map right-click to middle click and viceversa Reply with quote

I need to map right-click to middle click and viceversa. I thought it was simple, but my attempts have failed. I use middle click a lot in FF, RButton not so much. But doing the obvious:

Code:
Rbutton::MouseClick, Middle, , , 1



does not work as it returns back to 'normal mode' (no small arrow icon that means your mouse will control the scrolling now) as soon as I remove my finger from rightclick.

Any idea how to solve this?

Thanks!

[Moved from Scripts & Functions forum. ~jaco0646]
Back to top
View user's profile Send private message
Astrognaw



Joined: 27 Mar 2009
Posts: 21

PostPosted: Sun Aug 30, 2009 2:46 am    Post subject: Reply with quote

this work?
Code:
MButton::
Send, {RButton}
return

RButton::
Send, {MButton}
return
Back to top
View user's profile Send private message
urlwolf



Joined: 16 Mar 2006
Posts: 112

PostPosted: Sun Aug 30, 2009 8:30 am    Post subject: Reply with quote

nope, same problem.
The cross disappears as soon as right click is up; example, if I keep it pressed it works as expected, but as soon as I release it, it sends a right click press and shows the menu. Middle click is still middle click. This is with bot a logitech MX revolution and trackball.
Back to top
View user's profile Send private message
Guest






PostPosted: Sun Aug 30, 2009 8:51 am    Post subject: Reply with quote

this works for me in firefox
Code:
Rbutton::
click middle
return
Back to top
urlwolf



Joined: 16 Mar 2006
Posts: 112

PostPosted: Sun Aug 30, 2009 12:52 pm    Post subject: Reply with quote

yes, that works (I must have something on my other ahk scripts that was preventing this to work).
Still, no joy. You cannot map these two buttons to each other. try it Smile The first mapping is in action when the ahk interpreter reaches the second mapping...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group