Hi Agian!,
Is it possible to randomize just one wait time in a script between x & x amount of seconds?.
Randomize One Wait Time
Moderators: Dorian (MJT support), JRL
- Dorian (MJT support)
- Automation Wizard
- Posts: 1386
- Joined: Sun Nov 03, 2002 3:19 am
- Contact:
Re: Randomize One Wait Time
Yes. Use Random, and Wait. This will wait anywhere between 1 and 10 seconds.
Random>10,MyResult
Let>MyResult=MyResult+1
MessageModal>I will now wait for %MyResult% Seconds
Wait>%MyResult%
MessageModal>Well that was fun.
If you wanted it to wait anywhere from 0-1 seconds (in tenths) you could simply divide the result by 10.
Random>10,MyResult
Let>MyResult=MyResult+1
Let>MyResult=MyResult/10
MessageModal>I will now wait for %MyResult% Seconds
Wait>%MyResult%
MessageModal>Well that was fun.
MessageModal is only in there for informational purposes.
Random>10,MyResult
Let>MyResult=MyResult+1
MessageModal>I will now wait for %MyResult% Seconds
Wait>%MyResult%
MessageModal>Well that was fun.
If you wanted it to wait anywhere from 0-1 seconds (in tenths) you could simply divide the result by 10.
Random>10,MyResult
Let>MyResult=MyResult+1
Let>MyResult=MyResult/10
MessageModal>I will now wait for %MyResult% Seconds
Wait>%MyResult%
MessageModal>Well that was fun.
MessageModal is only in there for informational purposes.
Yes, we have a Custom Scripting Service. Message me or go here
Re: Randomize One Wait Time
Thanks Dorian!,Dorian (MJT support) wrote: ↑Wed Apr 03, 2019 11:58 amYes. Use Random, and Wait. This will wait anywhere between 1 and 10 seconds.
Random>10,MyResult
Let>MyResult=MyResult+1
MessageModal>I will now wait for %MyResult% Seconds
Wait>%MyResult%
MessageModal>Well that was fun.
If you wanted it to wait anywhere from 0-1 seconds (in tenths) you could simply divide the result by 10.
Random>10,MyResult
Let>MyResult=MyResult+1
Let>MyResult=MyResult/10
MessageModal>I will now wait for %MyResult% Seconds
Wait>%MyResult%
MessageModal>Well that was fun.
MessageModal is only in there for informational purposes.
I will run a test script when I get time the weekend. As always I'm very grateful for your expertise!.