EdNewman Posted December 4, 2008 Report Share Posted December 4, 2008 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. Quote Link to comment Share on other sites More sharing options...
rberq Posted December 5, 2008 Report Share Posted December 5, 2008 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. Quote Link to comment Share on other sites More sharing options...
EdNewman Posted December 6, 2008 Author Report Share Posted December 6, 2008 Thanks, that's just what I needed, don't know why I didn't spot it, I had a good look at that screen! Quote Link to comment Share on other sites More sharing options...
rberq Posted December 6, 2008 Report Share Posted December 6, 2008 Must be an ergonomically inadequate screen. The first time I needed to use it I missed what I needed also and had to write to support for help. Quote Link to comment Share on other sites More sharing options...
Gawwad Posted January 16, 2009 Report Share Posted January 16, 2009 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.