Timed Repeat?

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Mlrs327
Newbie
Posts: 7
Joined: Wed Oct 31, 2018 10:39 pm

Timed Repeat?

Post by Mlrs327 » Thu Nov 08, 2018 5:24 pm

Sorry to keep asking so many questions...just new at it(and scripting in general)
I have a subroutine that just repeats indefinitely...how might you go about putting something in that SRT that runs on time after executed, even if macro gets stopped, machine rebooted, etc.
Example
SRT Running
//DoSomething
Wait 4 days 18 hours
//DoSomethingAgain
Continue SRT

Not asking anyone to write it for me...though I'll gladly take it and just reverse engineer it to inderstand it, but main goal is to learn it

THANKS for help last time Marcus, worked like a champ

Mlrs327
Newbie
Posts: 7
Joined: Wed Oct 31, 2018 10:39 pm

Re: Timed Repeat?

Post by Mlrs327 » Thu Nov 08, 2018 6:02 pm

Or should I say MORE THAN 4 days 18hrs...because suppose could be 4days 19hrs till script came around to it

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Timed Repeat?

Post by Marcus Tettmar » Tue Nov 13, 2018 12:26 am

Have your macro store the run date in an INI file. First check the previously stored run date if any against today’s date and if less than 4 days apart exit. Schedule the macro to run every day.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

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