Page 1 of 1

Hotstring SetKeyDelay syntax

Posted: 21 Oct 2021, 12:42
by onefaller
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.]

Re: Hotstring SetKeyDelay syntax

Posted: 21 Oct 2021, 16:07
by mikeyww
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

Re: Hotstring SetKeyDelay syntax

Posted: 22 Oct 2021, 06:09
by onefaller
You, sir, rock!!!

**thank you**

Re: Hotstring SetKeyDelay syntax

Posted: 22 Oct 2021, 06:47
by onefaller
I searched the help docs and didn't come across that. am I just searching in the wrong way(or for the wrong thing)?

Re: Hotstring SetKeyDelay syntax

Posted: 22 Oct 2021, 07:26
by mikeyww
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.

Re: Hotstring SetKeyDelay syntax

Posted: 22 Oct 2021, 09:15
by onefaller
<hangs head> sorry. thank you again. </hh>