Simple script and key delay

Ask gaming related questions (AHK v1.1 and older)
condor
Posts: 8
Joined: 20 Apr 2020, 11:18

Simple script and key delay

20 Apr 2020, 16:02

I am looking for help, I could not with the scripts that I have tried
I already thank anyone who wants to comment, help or cooperate.
It is for a video game, I have it in window mode and start the script as admin.
I search:

1.-press two keys almost at the same time, with a minimum interval of time (a + left arrow)
I need that pressing the f key once executes the action of the key a plus the direction of that action (left arrow) SOLVED

2.-how to measure the time I have pressed a key SOLVED (pass mark Keyboard Test)

3.-a script for 3 keys. (a + left arrow + down arrow)

these are the scripts i have tried for point number 1:
----------------------------------------------------------
with this I execute the key a but not the left arrow:
~f::
SendInput a {Left}
return
-----------------------------------------------
This script works for me but only if I keep the f key pressed. if I press the f key only once it executes the action of the a key

~f::
SendInput {a down}
Sleep 1
SendInput {a up}
Sleep 5
SendInput {Left down}
Sleep 1
SendInput {Left up}
return

----------------------------
this scripts don´t work for me

f::
SendInput {a down}
Sleep 25
SendInput {Left down}
Sleep 25
SendInput {a up}{Left up}



f::
SendInput {a down}{Left down}
sleep 100
SendInput {a up}{Left up}
return
Last edited by condor on 20 Apr 2020, 17:38, edited 1 time in total.
condor
Posts: 8
Joined: 20 Apr 2020, 11:18

Re: Simple script and key delay

20 Apr 2020, 17:37

I already solved the first problem !!!! and to think that I don't know anything about ahk, but try after try it worked for me.

~f::
Send {a down}
Sleep 10
Send {a up}
Sleep 50
Send {Left down}
Sleep 10
Send {Left up}
return

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: RavePony and 21 guests