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 

Aim down site hold instead of toggle

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



Joined: 13 May 2006
Posts: 5

PostPosted: Mon Feb 01, 2010 12:52 am    Post subject: Aim down site hold instead of toggle Reply with quote

I'm trying to make a script for games to enable holding aim down the sight as apposed to toggle aim down the sight. I've gotten quite used to using hold but a lot of games only support toggling.

So basically I'm looking at doing is:
1. When Right mouse button is pressed down, send a right click to bring up the sight.
2. When Right mouse button is released, send another right click to leave aiming.

I've had a look but I cant find how to or whether its even possible to bind to the mouse button down and up events.

Would anyone be able give me a little help me with this?

Thanks,
Dylan

Edit: sorry about the wrong section

[Moved from Scripts & Functions forum. ~jaco0646]


Last edited by dylanbird on Mon Feb 01, 2010 12:54 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Ace Coder



Joined: 26 Oct 2009
Posts: 361

PostPosted: Mon Feb 01, 2010 4:13 am    Post subject: Reply with quote

Eh, i'm in a good mood...
Code:
RButton::Send,{RButton Down}
RButton Up::Send,{RButton Up}

Completely untested, cheers.
_________________
Check out the new AHK forum competition!
Back to top
View user's profile Send private message
dylanbird



Joined: 13 May 2006
Posts: 5

PostPosted: Mon Feb 01, 2010 4:47 am    Post subject: Thanks Ace Reply with quote

Oh that's how you do it. Thanks a lot Ace.

I'll give it a go when I get home.

For the holding down sight I might have to use it like this:
Code:
RButton::Send,{RButton}
RButton Up::Send,{Rbutton}
Back to top
View user's profile Send private message Send e-mail MSN Messenger
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