Jump to content
  • 0

what code to start an event on certain day on a certain time?


Question

4 answers to this question

Recommended Posts

Posted (edited)

OnClock0000:
if(gettime(5) == 1 && gettime(6) == 1) {
announce "Happy New Year",0;
}
end;

Change 0000 after OnClock to time your want, Change Date on 1 of gettime(5) and Change Month on 1 of gettimer(6)

Edited by Magic-Maker
Posted (edited)

If what you want is the certain weekday and certain time you can use On.. label like this

On<weekday><Hour><Minute>:

weekdays are Sun,Mon,Tue,Wed,Thu,Fri,Sat.

For example , Sunday 8 PM

OnSun2000:
announce "Sunday 08:00 PM",0;
end;

it will announce "Sunday 08:00 PM" On Sunday 8 PM.

Edited by Magic-Maker

Join the conversation

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

Guest
Answer this question...

×   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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...