Macros schedule

Frequently Asked Questions
Post Reply
u0000999
Posts: 2
Joined: Tue Mar 27, 2018 7:59 am

Macros schedule

Post by u0000999 » Tue Mar 27, 2018 8:06 am

Is it possible to create macros, which operates 24 hours a day and 6 days a week by means of schedule? For instance, do something every 60 minutes.

Petr
Posts: 106
Joined: Tue Oct 18, 2016 1:12 pm

Re: Macros schedule

Post by Petr » Wed Mar 28, 2018 7:17 pm

You can set the scheduler to run macro "every 60 minutes". This also means that the macro will run 24 hours every day... You cannot tell the scheduler what day not to do this, so you need to put this condition to macro logic:

Code: Select all

<if>("%_vCurrDate_DayOfWeek%== 1")<#>
<exitmacro><#> Do nothing this day
<endif><#>
<msg>(-100,-100,"Do something instead of this message.","",1,0,0,0)


The system variable %_vCurrDate_DayOfWeek% tells the day of the week. 1 means Sunday, 2 is Monday, etc.

Post Reply