Delay in between keystrokes

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
camazg
Posts: 2
Joined: 16 Oct 2018, 15:58

Delay in between keystrokes

16 Oct 2018, 16:05

Hi,

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?

Code: Select all


SendMode Play
SetMouseDelay,500
SetKeyDelay, 100,, Play

+p::
Loop,100
{
Send {Down 23}
Send {Enter}
}

Esc::
ExitApp
return

User avatar
TheDewd
Posts: 1513
Joined: 19 Dec 2013, 11:16
Location: USA

Re: Delay in between keystrokes

17 Oct 2018, 08:06

I answered this question in your other post, FYI: https://autohotkey.com/boards/viewtopic ... 06#p244312

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: mebelantikjaya and 239 guests