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..
Is There Any Way For This??
-
- Posts: 2
- Joined: 13 Mar 2018, 14:06
Re: Is There Any Way For This??
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.
-
- Posts: 2
- Joined: 13 Mar 2018, 14:06
Re: Is There Any Way For This??
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..
Who is online
Users browsing this forum: ReyAHK and 88 guests