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 

two mouse button script, help?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Cyper



Joined: 03 Jan 2009
Posts: 3

PostPosted: Sat Jan 03, 2009 6:59 pm    Post subject: two mouse button script, help? Reply with quote

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
View user's profile Send private message
Neight



Joined: 31 Dec 2008
Posts: 23

PostPosted: Sat Jan 03, 2009 7:01 pm    Post subject: Reply with quote

Code:
RButton & LButton::
Send, +

_________________
Ask stupid questions, get stupid answers.
Search before posting!
Back to top
View user's profile Send private message
HotKeyIt



Joined: 18 Jun 2008
Posts: 4652
Location: AHK Forum

PostPosted: Sat Jan 03, 2009 7:03 pm    Post subject: Reply with quote

Code:
~RButton & ~LButton::
Send {Shift down}
KeyWait, LButton
Send {Shift up}
Return

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun Wink
Back to top
View user's profile Send private message
Cyper



Joined: 03 Jan 2009
Posts: 3

PostPosted: Sat Jan 03, 2009 7:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Neight



Joined: 31 Dec 2008
Posts: 23

PostPosted: Sat Jan 03, 2009 7:31 pm    Post subject: Reply with quote

Question: You can hold two mouse buttons down, but not shift?
_________________
Ask stupid questions, get stupid answers.
Search before posting!
Back to top
View user's profile Send private message
HotKeyIt



Joined: 18 Jun 2008
Posts: 4652
Location: AHK Forum

PostPosted: Sat Jan 03, 2009 7:53 pm    Post subject: Reply with quote

Code:
~LButton & ~RButton::
~RButton & ~LButton::
Send {Shift down}
KeyWait, LButton
Send {Shift up}
Return

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun Wink
Back to top
View user's profile Send private message
Cyper



Joined: 03 Jan 2009
Posts: 3

PostPosted: Sat Jan 03, 2009 9:38 pm    Post subject: Reply with quote

didn't work for me Sad
I will look for another solution, but thank you both for your help.
You have great community here.
Back to top
View user's profile Send private message
Frankie



Joined: 02 Nov 2008
Posts: 2850

PostPosted: Sun Jan 04, 2009 8:38 pm    Post subject: Reply with quote

I think i got it:
Code:
~LButton & RButton::
~RButton & ~LButton::
Send {Shift down}
KeyWait, LButton
Send {Shift up}
Return

_________________
aboutscriptappsscripts
Any code ⇈ above ⇈ requires AutoHotkey_L to run
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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