Technical support and scripting issues
Moderators: JRL, Dorian (MJT support)
-
Rua
Post
by Rua » Thu Nov 14, 2002 3:17 pm
Hello I am trying to make a macro that repeats a keystroke and the delay between the strokes should be randomly between 50 and 60 seconds. Is there a way to set another range the 0 Start
Send Character/Text>1
Random>10,Result
Add>Result,50
Wait>%Result%
Goto>Start
My English knowledge isn’t the best but I hope you understand my question

-
Ernest
Post
by Ernest » Thu Nov 14, 2002 11:57 pm
Hi,
I've added two commands. Another random to get the part of a second (psec). The 2nd concatinates both results (sec+dot+psec), to get the timeout e.g. 53.7
BTW: I haven't found anything which indicates that MSched is able to handle parts of a second.
Ciao
Ernest
Code: Select all
Label>Start
Send Character/Text>1
Random>10,sec
Random>9,psec
Add>sec,50
ConCat>sec,.%psec%
Wait>%sec%
Goto>Start
-
support
- Automation Wizard
- Posts: 1450
- Joined: Sat Oct 19, 2002 4:38 pm
- Location: London
-
Contact:
Post
by support » Fri Nov 15, 2002 9:20 am
Yes, Waits can be fractional:
Wait>0.5
Wait>10.6
-
Rua
Post
by Rua » Fri Nov 15, 2002 11:00 am
Thanks for the help
