Exec.SchedulerAdd
Description
- Adds a new scheduled event.
Syntax
- Exec.SchedulerAdd(evdate, evtime, action)
Parameters
- evdate
- (integer) date of the event
-
Possible Values
- yyyymmdd
- exact date
- 0 < evdate < 1000
- number of days from now (zero for today)
- evtime
- (integer) time of the event
-
Possible Values
- hhmm
- time in 24 hour clock time
- +hhmm
- number of hours and minutes from now
- action
- (string) either:
- a PowerPro command
- text, which will be set as a Win.Message() event.
Examples
- Exec.SchedulerAdd(20061225, 0900, "Merry Christmas")
- Creates a new scheduled event to show a PowerPro message window with the message "Merry Christmas" at 9am on Christmas Day, 2006.
- Exec.SchedulerAdd(0, +100, "c:\program files\myprog\myprog.exe")
- Creates a new scheduled event to run myprog.exe one hour from now.
Notes
- Exec.SchedulerAdd cannot be used in a script called from a scheduled alarm, unless you precede the Exec.SchedulerAdd() call by Wait.For(1000).
- The parameters evdate & evtime must each be a single number without colons, slashes, or other delimiters.