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 

Help on a Script to a game

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



Joined: 15 Aug 2008
Posts: 2

PostPosted: Fri Aug 15, 2008 2:37 pm    Post subject: Help on a Script to a game Reply with quote

Hi there Iam new here, and to the program, My english is not so good and I really tried to read the tutorial but could not make anything of it Sad .

I want to be able have these keys pressed Arrow f and holding shift and 1 When i press for example an alphabet for exampel k

Like, when I press k its a short cut for pressing Arrow f Arrow holding shift Arrow 1

The shift should be held down till the 1 is pressed.
This is for a game, where the shift+1 is a buffer. And the f is attack.
So, Attack and cast magic.

And would like this to happen only when i press k so it not repeat it self.

Thanks very much! Very Happy
Back to top
View user's profile Send private message
Sivvy



Joined: 21 Jul 2008
Posts: 711
Location: Calgary, AB, Canada

PostPosted: Fri Aug 15, 2008 3:15 pm    Post subject: Reply with quote

Code:
SetKetDelay, 10, 10, Play
k::SendPlay, {Right}f{Right}+1

Try that.
Back to top
View user's profile Send private message MSN Messenger
abotiz



Joined: 15 Aug 2008
Posts: 2

PostPosted: Sat Aug 16, 2008 10:31 am    Post subject: Reply with quote

Thanks Sivvy for your fast reply! Smile

I tried that code, but did not work for me..

This is what i did, I made a text document, named it Test.ahk
Pressed " Edit script" and just pasted in the code, saved and started up my game, but did'nt work, did I mess up?

Thanks
Back to top
View user's profile Send private message
Sivvy



Joined: 21 Jul 2008
Posts: 711
Location: Calgary, AB, Canada

PostPosted: Mon Aug 18, 2008 1:48 pm    Post subject: Reply with quote

Did you remember to start the script? Double-Click the script to start it up, and you should see the green box with an "H" in the tray. If that wasn't your problem, open a text document like notepad and try it. Post back with what it prints.
Back to top
View user's profile Send private message MSN Messenger
Guest






PostPosted: Fri Aug 22, 2008 8:29 pm    Post subject: Reply with quote

Of course i did that.

I also tried to delete the top command
SetKetDelay, 10, 10, Play


And it worked, but when i press " k" the following happends, back arrow is pressed and everything else works.

Not much of a problem though when the back arrow is pressed, so Thanks for your help Smile
Back to top
Sivvy



Joined: 21 Jul 2008
Posts: 711
Location: Calgary, AB, Canada

PostPosted: Fri Aug 22, 2008 8:36 pm    Post subject: Reply with quote

No Problem. You can change {Right} to {Left} as you choose.
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   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