Jump to content
Macro Express Forums

Macro stop on system time


EdNewman

Recommended Posts

Hi all, I'm just getting into MacroExpress and loving it! However I have run up against a problem I can't find an answer to, but it should be so simple!

 

I have a macro that is scheduled to run at the same time every day, but I want the macro to repeat until a certain time (when our backups kick off), but the macro has to end cleanly, i.e. at the end of the macro cycle.

 

So how would I script a macro to repeat, but not restart if time is greater than 23:00?

 

Thanks very much in advanced

Ed.

Link to comment
Share on other sites

Macro Properties / Activation / Set Schedule allows you to have it run every x minutes / seconds, between the dates and times you specify on the schedule screen. So don't have a Repeat loop in the macro itself, just schedule it to run repeatedly within the desired time frame.

Link to comment
Share on other sites

  • 1 month later...

This is one way to do it.

Date/Time: Save "hh:mm" into %T1%
If Variable %T1% >= "hh:mm"
 AND
If Variable %T1% <= "hh:mm"
 Macro Stop

 

Example:

 

Date/Time: Save "hh:mm" into %T1%
If Variable %T1% >= "12:00"
 AND
If Variable %T1% <= "13:00"
 Macro Stop

The macro will check system time and if it's between 12:00 and 13:00 it will stop the macro.

Edit the interval to suit the lenght of the macro.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...