Repeat every 185 mins / Timer issues.

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
SudoSpark
Newbie
Posts: 1
Joined: Sun Jan 03, 2016 8:08 am

Repeat every 185 mins / Timer issues.

Post by SudoSpark » Sun Jan 03, 2016 8:54 am

I can't seem to get my setup working here.

I need 1 macro that turns on every 185 mins.

I need the 2nd macro to turn on after the first one is completed.

I saw they had a timer for when to start the 185 mins, But I need it to start when I need it. Not a certain "time"
As if there was a button that said "Start timer now" Kinda thing? Rather than an actual time? How do I know the timer is even going?


Any help would be great, Thank you.

mightycpa
Automation Wizard
Posts: 343
Joined: Mon Jan 12, 2004 4:07 pm
Location: Vienna, VA

Re: Repeat every 185 mins / Timer issues.

Post by mightycpa » Sun Jan 03, 2016 4:11 pm

Seed an ini file with your first start date/time.
Check every 5 minutes to see if it is that date/time yet.
When it isn't, end.
When it is, calculate the new next date/time, save it in the ini, and run.

That should do what you want.
"A facility for quotation covers the absence of original thought." - Lord Peter Wimsey

User avatar
PepsiHog
Automation Wizard
Posts: 517
Joined: Wed Apr 08, 2009 4:19 pm
Location: Florida

Re: Repeat every 185 mins / Timer issues.

Post by PepsiHog » Thu Jan 07, 2016 9:39 pm

Hi. I am curious. What is going to run your first macro every 185 minutes? You have options, I guess. Forgive me, but I don't do macros that are timed for execution. But if I understood your setup better, I have been writing macros for some time.

Is Macro Scheduler going to execute your macro? Or is Windows going to execute your macro? Or do you have some other software?

You could have your macro consistently running in the background, timed for 185 minutes and then perform the task(s) that is/are needed. But, if you do that, then the same macro could do the "second macros" job as well. However, keep in mind that depending on how you write the macro, it may take up a lot of resources.

Good Luck.
PepsiHog
Windows 7

PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2024) AND enjoy programming. (That's my little piece of heaven!)

The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!

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