| View previous topic :: View next topic |
| Author |
Message |
Cyper
Joined: 03 Jan 2009 Posts: 3
|
Posted: Sat Jan 03, 2009 6:59 pm Post subject: two mouse button script, help? |
|
|
Hello,
I hate to bother you guys, but last 3 hours I tried and failed to write this so I am asking for help:
I want to make a script that will do the following:
when right and left mouse button are pressed the shift is also pressed
when right and left mouse button are relised the shift is also relised.
Any help would made my day,
thank you |
|
| Back to top |
|
 |
Neight
Joined: 31 Dec 2008 Posts: 23
|
Posted: Sat Jan 03, 2009 7:01 pm Post subject: |
|
|
| Code: | RButton & LButton::
Send, + |
_________________ Ask stupid questions, get stupid answers.
Search before posting! |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4652 Location: AHK Forum
|
|
| Back to top |
|
 |
Cyper
Joined: 03 Jan 2009 Posts: 3
|
Posted: Sat Jan 03, 2009 7:29 pm Post subject: |
|
|
sadly both doesn't work :/
how are those working with you guys? When you hold 2 mouse button you can write IN CAPITALS as when shift is pressed? |
|
| Back to top |
|
 |
Neight
Joined: 31 Dec 2008 Posts: 23
|
Posted: Sat Jan 03, 2009 7:31 pm Post subject: |
|
|
Question: You can hold two mouse buttons down, but not shift? _________________ Ask stupid questions, get stupid answers.
Search before posting! |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4652 Location: AHK Forum
|
|
| Back to top |
|
 |
Cyper
Joined: 03 Jan 2009 Posts: 3
|
Posted: Sat Jan 03, 2009 9:38 pm Post subject: |
|
|
didn't work for me
I will look for another solution, but thank you both for your help.
You have great community here. |
|
| Back to top |
|
 |
Frankie
Joined: 02 Nov 2008 Posts: 2850
|
Posted: Sun Jan 04, 2009 8:38 pm Post subject: |
|
|
I think i got it: | Code: | ~LButton & RButton::
~RButton & ~LButton::
Send {Shift down}
KeyWait, LButton
Send {Shift up}
Return |
_________________ aboutscript ⍟ apps ⍟ scripts
Any code ⇈ above ⇈ requires AutoHotkey_L to run |
|
| Back to top |
|
 |
|