Macro Toolworks Products Discussion Forums :: FAQ's
Welcome Guest   
 Subject :Q: How do I schedule macro to run every 10 minutes but not on Saturday.. 30-06-2011 12:05:32 
petr
Joined: 15-10-2009 11:48:52
Posts: 152
Location
Subject :Q: How do I schedule macro to run every 10 minutes but not on Saturday and Sunday and....

Q: How do I schedule macro to run every 10 minutes but not on Saturday and Sunday and not during nights (between 7:00PM and 6:00AM)?
A: Schedule macro to run every 10 minutes and within the macro write a logic that exits macro if the current day is Saturday or Sunday and the time is between 7:00PM and 6:00AM. The code could look like this:

<cmds>

<#> Check for correct time and exit if between 19:00 and 6:00
<if_num>("(_vCurrTime_Hour24 >= 19) _OR_ (_vCurrTime_Hour24 <= 6)")
<exitmacro>
<endif>

<#> Check for correct day and exit if Saturday or Sunday
<if_num>("(_vCurrDate_DayOfWeek==7) _OR_ (_vCurrDate_DayOfWeek==1)")
<exitmacro>
<endif>

<#> Do your macro here....
IP Logged
Page # 


Powered by ccBoard


Login and share your experience - send messages to forums and add comments to samples, commands and other resources.



Account is free of charge, easy to setup.