Hi there. Firstly, thanks for a Great program, it is one I certainly intend to purchase, as its so flexible!
Looking through the posts, I have managed to work out how to run a macro at random intervals, but need to find out what code is used to stop that macro from running at a certain time, say 23:57
Have pasted a small portion below:
Label>start
Random>31,interval
Let>interval=interval+1
Let>interval=interval*60
Wait>interval
Timestamp>C:\Macro Scheduler\Run Log.txt,My Macro Started
Let>WW_TIMEOUT=5
CapsOn
MouseMove>1187,212
V
V
V
Wait>6.16
LClick
Goto>start
Many thanks
Steven
Getting a random time running macro to terminate at predifin
Moderators: Dorian (MJT support), JRL
Thankyou for your help Lumumba. So is this how what you posted fits into my little script?
Let>MaxOutageTime=900
Label>start
Random>31,interval
Let>interval=interval+1
Let>interval=interval*60
Wait>interval
Timestamp>C:\Macro Scheduler\Run Log.txt,My Macro Started
Let>WW_TIMEOUT=5
CapsOn
MouseMove>1187,212
V
V
V
Hour>hh
Min>mm
If>hh23, Start
If>mm>=50, Outage
If>mm6.16
LClick
Label>Outage
Wait>%MaxOutageTime%
Goto>start
Many thanks for your help!
Steven
Let>MaxOutageTime=900
Label>start
Random>31,interval
Let>interval=interval+1
Let>interval=interval*60
Wait>interval
Timestamp>C:\Macro Scheduler\Run Log.txt,My Macro Started
Let>WW_TIMEOUT=5
CapsOn
MouseMove>1187,212
V
V
V
Hour>hh
Min>mm
If>hh23, Start
If>mm>=50, Outage
If>mm6.16
LClick
Label>Outage
Wait>%MaxOutageTime%
Goto>start
Many thanks for your help!
Steven
Well, if it makes sense !?
Have you tested it ??
What's your exact intention? Keeping up what kinda process?
What's going on at 23:59 what needs an outage of your script ???
That floating point Wait>6.16 indicates that your macro is (partialy) recorded. If yes, there's often the chance to streamline the code a little more ...
Have you tested it ??
What's your exact intention? Keeping up what kinda process?
What's going on at 23:59 what needs an outage of your script ???
That floating point Wait>6.16 indicates that your macro is (partialy) recorded. If yes, there's often the chance to streamline the code a little more ...