I am trying to create a script which presses the down arrow key 23 times, then presses enter. This is all inside a loop which repeats 100 times.
I am unable to create the necessary delay of 100ms in between key strokes of the down arrow. Is anyone able to identify what is wrong with the code I have written?
SendMode Play
SetMouseDelay,500
SetKeyDelay, 100,, Play
+p::
Loop,100
{
Send {Down 23}
Send {Enter}
}
Code: Select all
ExitApp
return