Is There Any Way For This??

Ask gaming related questions
alenovita373
Posts: 2
Joined: 13 Mar 2018, 14:06

Is There Any Way For This??

17 Mar 2018, 07:58

i write this for pressing 1 enter key then 1 down key repeat until i stop script.
------------------------
#Persistent
SetTimer, PressTheKey, 1000
Return

PressTheKey:
Send, {Enter}
Send, {Down}
Return
----------------------------
but i want like this, 1 extra down each time when the script repeats itself..

enter1
down1

enter2
down2
down3

enter3
down4
down5
down6


and so on, until i manually stop the ahk script..
User avatar
Nwb
Posts: 444
Joined: 29 Nov 2016, 08:56

Re: Is There Any Way For This??

17 Mar 2018, 08:27

Does this work?

Code: Select all

No := 0
#Persistent
SetTimer, PressTheKey, 1000
Return

PressTheKey:
No++
Send, {Enter}
Send, {Down %No%}
Return
I am your average ahk newbie. Just.. a tat more cute. ;)
alenovita373
Posts: 2
Joined: 13 Mar 2018, 14:06

Re: Is There Any Way For This??

17 Mar 2018, 09:32

Nwb wrote:Does this work?

Code: Select all

No := 0
#Persistent
SetTimer, PressTheKey, 1000
Return

PressTheKey:
No++
Send, {Enter}
Send, {Down %No%}
Return

Thank you sir.. :dance: :bravo: :clap: :superhappy:

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 7 guests