Hi
I hope you are all as well as can be.
Is there a way to make SK_DELAY insert characters with a random delay between 500ms and 4,000ms?
Thanks for any help in advance.
~Gary. =)
SK_DELAY random?
Moderators: JRL, Dorian (MJT support)
Re: SK_DELAY random?
Hi, My understanding is that you could arrange SK_DELAY to be random, however, if you use Send> then one SK_DELAY would apply to the whole text in the Send command (so the delay would be the same for each character). If you want separate delays for separate characters then I think you could to do something like:
Code: Select all
Run>Notepad
WaitWindowOpen>Notepad*
Let>String=Hello!
Length>String,StringLength
Let>ct=0
While>ct<StringLength
Add>ct,1
//Generate random delay
Random>3501,tmp
Let>TimeDelay={%tmp%+500}
Timer>intElapsed
Let>TargetTime={%intElapsed%+%TimeDelay%}
Let>time=0
While>time<TargetTime
Timer>time
EndWhile
MidStr>String,ct,1,tmp
SendText>tmp
EndWhile