| View previous topic :: View next topic |
| Author |
Message |
Syb Guest
|
Posted: Thu Mar 03, 2005 5:15 pm Post subject: Mouse button combination |
|
|
| 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
|
Posted: Thu Mar 03, 2005 5:32 pm Post subject: |
|
|
| 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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
Posted: Thu Mar 03, 2005 5:53 pm Post subject: |
|
|
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 |
|
 |
Syb Guest
|
Posted: Fri Mar 04, 2005 6:51 pm Post subject: |
|
|
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
|
Posted: Fri Mar 04, 2005 9:33 pm Post subject: |
|
|
| 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 |
|
 |
|