| View previous topic :: View next topic |
| Author |
Message |
abotiz
Joined: 15 Aug 2008 Posts: 2
|
Posted: Fri Aug 15, 2008 2:37 pm Post subject: Help on a Script to a game |
|
|
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 .
I want to be able have these keys pressed 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 f holding shift 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!  |
|
| Back to top |
|
 |
Sivvy
Joined: 21 Jul 2008 Posts: 711 Location: Calgary, AB, Canada
|
Posted: Fri Aug 15, 2008 3:15 pm Post subject: |
|
|
| Code: | SetKetDelay, 10, 10, Play
k::SendPlay, {Right}f{Right}+1 |
Try that. |
|
| Back to top |
|
 |
abotiz
Joined: 15 Aug 2008 Posts: 2
|
Posted: Sat Aug 16, 2008 10:31 am Post subject: |
|
|
Thanks Sivvy for your fast reply!
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 |
|
 |
Sivvy
Joined: 21 Jul 2008 Posts: 711 Location: Calgary, AB, Canada
|
Posted: Mon Aug 18, 2008 1:48 pm Post subject: |
|
|
| 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 |
|
 |
Guest
|
Posted: Fri Aug 22, 2008 8:29 pm Post subject: |
|
|
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  |
|
| Back to top |
|
 |
Sivvy
Joined: 21 Jul 2008 Posts: 711 Location: Calgary, AB, Canada
|
Posted: Fri Aug 22, 2008 8:36 pm Post subject: |
|
|
| No Problem. You can change {Right} to {Left} as you choose. |
|
| Back to top |
|
 |
|