| View previous topic :: View next topic |
| Author |
Message |
dylanbird
Joined: 13 May 2006 Posts: 5
|
Posted: Mon Feb 01, 2010 12:52 am Post subject: Aim down site hold instead of toggle |
|
|
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 |
|
 |
Ace Coder
Joined: 26 Oct 2009 Posts: 361
|
Posted: Mon Feb 01, 2010 4:13 am Post subject: |
|
|
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 |
|
 |
dylanbird
Joined: 13 May 2006 Posts: 5
|
Posted: Mon Feb 01, 2010 4:47 am Post subject: Thanks Ace |
|
|
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 |
|
 |
|