ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

IDEA: press and hold hotkey switches mouse buttons till release

(1/1)

okirchhoff:
Hi!

This may sound as a strange request at the beginning... :-[

I would like to switch mouse buttons as long as I press a key or a key combination.

Example: I click the left mouse button as usual to get a left click. But by pressing down the windows key and left click at the same time, than it's like clicking with the right mouse button. The capslock key could be used together with a left click to emulate the middle mouse button...
It's important to have a normal left click after releasing the hotkeys.

Why the hell do I need such a feature you ask?! Well, it's because I'm a professional 3d artist using Autodesk Maya. This application needs a 3 button mouse to navigate in 3d. Since I do that job for several years now I already have lot's of problems with my right hand and my fingers. At the moment I prefere to use a Wacom tablet and pen which is a much more ergonomic way to move the mouse cursor. But using the middle and right button on a pen is even more painful than using the 3 button mouse. And I have to use them very often...  :'(   Instead I would like to use only the tip of the pen which is normaly the left click of a mouse. Switching the buttons would temporarly make that to the right or the middle mouse button.

I hope that makes any sense...

Cheers

Oliver

jgpaiva:
That makes perfect sense!
Actually, i was already interested in buying such device myself.

Well.. The following code in autohotkey will do exactly what you asked for. It'll map win+left button to right button and capslock+left button to middle button:

--- ---#InstallMouseHook

*#LButton::RButton
capslock & LButton::
  Send,{Mbutton down}
  KeyWait,LButton
  Send,{MButton up}
  Send,{CapsLock}
  return
Just download autohotkey from www.autohotkey.com, install it, save that code in a file with the extension '.ahk' and run it ;)

I hope you like it!

okirchhoff:
Wonderful! It really works!

It's amazing how quick you made that.

Thank you very much.

Oliver

jgpaiva:
Wonderful! It really works!
-okirchhoff (January 23, 2007, 05:39 PM)
--- End quote ---
Cool!  :Thmbsup:
Glad to know you like it :D

Navigation

[0] Message Index

Go to full version