Getting a random time running macro to terminate at predifin

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
statesman
Newbie
Posts: 2
Joined: Sat Aug 07, 2004 4:52 am

Getting a random time running macro to terminate at predifin

Post by statesman » Sat Aug 07, 2004 4:59 am

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

Lumumba

Post by Lumumba » Sat Aug 07, 2004 1:12 pm

Let>MaxOutageTime=900
Label>start
.
.
.
Hour>hh
Min>mm
If>hh23, Start
If>mm>=50, Outage
If>mmOutage
Wait>%MaxOutageTime%
Goto, Start

statesman
Newbie
Posts: 2
Joined: Sat Aug 07, 2004 4:52 am

Post by statesman » Sun Aug 08, 2004 1:52 am

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

Lumumba

Post by Lumumba » Sun Aug 08, 2004 9:53 am

Well, if it makes sense :oops: !?
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 ... 8)

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts