Hotstring SetKeyDelay syntax

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
onefaller
Posts: 4
Joined: 21 Oct 2021, 11:35

Hotstring SetKeyDelay syntax

21 Oct 2021, 12:42

I've been beating my head against the wall all day with this. :headwall:

I know SetKeyDelay is the command that I need to use, but I cannot figure out the syntax - and I can't find an example HotString with it.

the hotstring I'm trying to use it in is:

Code: Select all

::obd::string of text
I've tried:

Code: Select all

::obd::; SetKeyDelay, 400
string of text
return

::obd:: SetKeyDelay, 400;
string of text;
return
and a whole bunch of other variations.

help?

Thank you!!!


Edit: I finally got code that wasn't erroring, but if I'm correct, this should wait 5 seconds between each keystroke. it does not.

Code: Select all

::..obd::
SetKeyDelay, 5000
Send, Suspicious outbound traffic was dropped. No further action necessary.
return
[Mod edit: [code][/code] tags added.]
User avatar
mikeyww
Posts: 26885
Joined: 09 Sep 2014, 18:38

Re: Hotstring SetKeyDelay syntax

21 Oct 2021, 16:07

The default send mode for hotstrings is SendInput, which does not respond to SetKeyDelay.

Code: Select all

:SEK100:obd::string of text
Explained: Hotstring options
onefaller
Posts: 4
Joined: 21 Oct 2021, 11:35

Re: Hotstring SetKeyDelay syntax

22 Oct 2021, 06:09

You, sir, rock!!!

**thank you**
onefaller
Posts: 4
Joined: 21 Oct 2021, 11:35

Re: Hotstring SetKeyDelay syntax

22 Oct 2021, 06:47

I searched the help docs and didn't come across that. am I just searching in the wrong way(or for the wrong thing)?
User avatar
mikeyww
Posts: 26885
Joined: 09 Sep 2014, 18:38

Re: Hotstring SetKeyDelay syntax

22 Oct 2021, 07:26

In my previous post, I made it easy for you by providing a link to the exact page and section with the information. The link is underlined and has blue text.
onefaller
Posts: 4
Joined: 21 Oct 2021, 11:35

Re: Hotstring SetKeyDelay syntax

22 Oct 2021, 09:15

<hangs head> sorry. thank you again. </hh>

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Descolada, Joey5 and 325 guests