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 

Mouse button combination

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
Syb
Guest





PostPosted: Thu Mar 03, 2005 5:15 pm    Post subject: Mouse button combination Reply with quote

It is not possible to do a RButton+LButton+MButton hotkey simply like with keyboard.
Back to top
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Thu Mar 03, 2005 5:32 pm    Post subject: Reply with quote

Quote:
like with keyboard.


If you haven't noticed, a hotkey like A+7+Enter won't work either. You can have as many modifiers (shift, alt, win, etc.) as you want, but you can only pair two regular keys together. The mouse buttons count as regular keys for this purpose.
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Thu Mar 03, 2005 5:53 pm    Post subject: Reply with quote

Although it might not be exactly what you want, here is an example that comes close:
Code:
~MButton & RButton::
GetKeyState, State, LButton
if State = U
    return
; Otherwise:
MsgBox You pressed the main three mouse buttons.
return
One drawback to the above is that you have to have LButton down prior to pressing the other two buttons. There are probably ways to work around that.

I think the need for three-button combinations is fairly rare, but if anyone feels this is something common enough to go on the to-do list, please let me know.
Back to top
View user's profile Send private message Send e-mail
Syb
Guest





PostPosted: Fri Mar 04, 2005 6:51 pm    Post subject: Reply with quote

3 Button combinations can be useful for those who wants, like me, to transform their cordless mouse into a remote control.

When I said RButton+LButton+MButton, I meant the three button combination and not the script.

The script Chris gave does not permit another MButton & RButton hotkey.

[quoteI think the need for three-button combinations is fairly rare[/quote]

OK, it's a little strange but I think it would be easy to fix that, No ?

Sorry if my english is approximative but it isn't my native language !
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Fri Mar 04, 2005 9:33 pm    Post subject: Reply with quote

Syb wrote:
The script Chris gave does not permit another MButton & RButton hotkey.
If you give more details about the behavior you're trying to achieve, someone here can help you write a better script. There isn't much you can't do when you combine the existing hotkey features with GetKeyState.

Quote:
OK, it's a little strange but I think it would be easy to fix that, No ?
My preliminary estimate is that this would not be a simple change. Many hundreds of hours have already gone into the design, testing, and refinement of two-key hotkeys. Adding a third key, while it seems simple on the surface, is likely to be a major thing.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List 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