AutoHotkey Community

It is currently May 26th, 2012, 10:07 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Onrelease
PostPosted: July 22nd, 2009, 8:38 pm 
Offline

Joined: July 22nd, 2009, 8:35 pm
Posts: 12
I want to make onrelease script for one game but not hack, windows script.
I want that when i hold ALT im crouching and when i release ALT im standing.

[ Moderator!: Moved from Scripts and Functions ]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 22nd, 2009, 8:53 pm 
Offline

Joined: December 24th, 2008, 3:25 am
Posts: 1401
Location: :noitacoL
What game? most games have keyboard options.

If crouch is 'C', you should be able to change it to 'alt' in the options.

If C was crouch, holding down C could crouch you, and letting go of C would make you stand. Unless is is a non-traditional game, you shouldn't need code for it.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 22nd, 2009, 11:24 pm 
Offline

Joined: July 22nd, 2009, 8:35 pm
Posts: 12
It is for americas army.Bind is not ok cause some servers kick me out.
I know bind for onrelease.
Alt=Crouching |Onrelease Crouching

But i want this function in autohotkey.Just this function not crouch and fire just Crouching |Onrelease Crouching


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 23rd, 2009, 5:37 pm 
Offline

Joined: July 22nd, 2009, 8:35 pm
Posts: 12
Someone know how to make it


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 18th, 2009, 2:20 pm 
Offline

Joined: August 26th, 2009, 11:15 pm
Posts: 38
Location: Canada
I know this is an old post but might as well add to it; I have used c as the crouching key in game, yet Alt is going to trigger it as a toggle. You might want to bind a key you don't use for crouching and replace c in this script with that key.

So what this does:

Code:
#NoEnv
#InstallKeybdHook
#InstallMouseHook

~Lalt:: ;while holding the left alt
send {c 1} ; sends 1 c - your crouchdown
KeyWait, Lalt  ; Waits for the release left alt.
send {c 1} ; sends 1 more c - your returning to standing
return


Have fun.

_________________
Image


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot], hyper_, JSLover, Leef_me, patgenn123 and 56 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:
cron
Powered by phpBB® Forum Software © phpBB Group