AutoHotkey Community

It is currently May 26th, 2012, 8:48 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: August 30th, 2009, 3:18 am 
Offline

Joined: March 16th, 2006, 5:01 pm
Posts: 150
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]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 30th, 2009, 3:46 am 
Offline

Joined: March 27th, 2009, 1:00 am
Posts: 26
this work?
Code:
MButton::
Send, {RButton}
return

RButton::
Send, {MButton}
return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 30th, 2009, 9:30 am 
Offline

Joined: March 16th, 2006, 5:01 pm
Posts: 150
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 30th, 2009, 9:51 am 
this works for me in firefox
Code:
Rbutton::
click middle
return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 30th, 2009, 1:52 pm 
Offline

Joined: March 16th, 2006, 5:01 pm
Posts: 150
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 :) The first mapping is in action when the ahk interpreter reaches the second mapping...


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], coinman, joetazz, Leef_me, Yahoo [Bot] and 58 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group