AutoHotkey Community

It is currently May 26th, 2012, 1:04 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: January 3rd, 2009, 7:59 pm 
Offline

Joined: January 3rd, 2009, 7:56 pm
Posts: 3
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 3rd, 2009, 8:01 pm 
Offline

Joined: December 31st, 2008, 7:30 am
Posts: 23
Code:
RButton & LButton::
Send, +

_________________
Ask stupid questions, get stupid answers.
Search before posting!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 3rd, 2009, 8:03 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
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:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 3rd, 2009, 8:29 pm 
Offline

Joined: January 3rd, 2009, 7:56 pm
Posts: 3
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 3rd, 2009, 8:31 pm 
Offline

Joined: December 31st, 2008, 7:30 am
Posts: 23
Question: You can hold two mouse buttons down, but not shift?

_________________
Ask stupid questions, get stupid answers.
Search before posting!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 3rd, 2009, 8:53 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
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:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 3rd, 2009, 10:38 pm 
Offline

Joined: January 3rd, 2009, 7:56 pm
Posts: 3
didn't work for me :(
I will look for another solution, but thank you both for your help.
You have great community here.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 4th, 2009, 9:38 pm 
Offline
User avatar

Joined: November 2nd, 2008, 4:23 pm
Posts: 2906
Location: 127.0.0.1
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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Amandaville, BrandonHotkey, Exabot [Bot], Google Feedfetcher, Maestr0, patgenn123, poserpro, Yahoo [Bot] and 20 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group