Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 04, 2016, 04:34:52 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IDEA: press and hold hotkey switches mouse buttons till release  (Read 2794 times)

okirchhoff

  • Participant
  • Joined in 2006
  • *
  • Posts: 2
    • View Profile
    • Donate to Member
IDEA: press and hold hotkey switches mouse buttons till release
« on: January 22, 2007, 06:06:47 PM »
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

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: press and hold hotkey switches mouse buttons till release
« Reply #1 on: January 22, 2007, 06:42:51 PM »
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

  • Participant
  • Joined in 2006
  • *
  • Posts: 2
    • View Profile
    • Donate to Member
Re: IDEA: press and hold hotkey switches mouse buttons till release
« Reply #2 on: January 23, 2007, 05:39:03 PM »
Wonderful! It really works!

It's amazing how quick you made that.

Thank you very much.

Oliver

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: IDEA: press and hold hotkey switches mouse buttons till release
« Reply #3 on: January 24, 2007, 04:24:23 AM »
Wonderful! It really works!
Cool!  :Thmbsup:
Glad to know you like it :D