Key Stroke Delay Syntax Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
MOTT

Key Stroke Delay Syntax

15 Dec 2017, 12:42

should be pretty basic but can't seem to get it to work. i'm trying to add a key stroke delay between each key in the time and date below:

SendMode Input

!v::
inputTime := clipboard
RegRead, TZI, HKCU, Control Panel\International, iDate ;Get system user date format (0=dd/mm/yyyy, 1=dd/mm/yy, 2=yy/mm/dd)

; Convert input string to machine-readable value
inputTime := DateParse(inputTime,TZI) ; Specify either 0 or 1
FormatTime, inputTime, %inputTime%, ddd, MMM d, yyyy 'at' h:mm tt

;MsgBox, %inputTime%
Send, %inputTime%
Return
John316
Posts: 13
Joined: 15 Dec 2017, 08:53

Re: Key Stroke Delay Syntax

15 Dec 2017, 12:58

This will delay keystrokes being sent using the Send command.

Code: Select all

Setkeydelay, 1000 	; delay keystrokes by 1 second
Send, abcdefg
MOTT

Re: Key Stroke Delay Syntax  Topic is solved

15 Dec 2017, 13:09

I've tried but doenst seem to have a delay. can you input that syntax exactly where it should go in the code I posted?
User avatar
Xtra
Posts: 2750
Joined: 02 Oct 2015, 12:15

Re: Key Stroke Delay Syntax

15 Dec 2017, 13:27

Replace:

Code: Select all

SendMode Input
with:

Code: Select all

Setkeydelay, 1000
"SendMode Input" is causing the no delay sends.
When Sendmode is not specified in a script the default send mode is SendEvent which can use Setkeydelay.

HTH

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Chunjee, dangoscrub, Jose-phil, serenite and 382 guests