AddFixedTimeEvent Method



 
The AddFixedTimeEvent method calls a script function at a specified time.


Syntax

    [evtid=] SiteKiosk.Scheduler.AddFixedTimeEvent(h, m, s, func)
    
Parameters
    h Long value that specifies the hour.
    m Long value that specifies the minute.
    s Long value that specifies the second.
    func Function that is called at the specified time.
Return Value
    Returns a Long value that contains the event ID.
Remarks
    The func parameter can be a JavaScript or VBScript function. When this function is called, the event ID is transmitted as a parameter.
Examples
    The following example calls a JavaScript function at 12:10:00.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    evtid = SiteKiosk.Scheduler.AddFixedTimeEvent(12, 10, 0, myfunction);
    function myfunction(eventID)
    {
       alert("The time is 12:10");
    }
    </SCRIPT>
    

Applies to
    SiteKiosk v5.0 (and later versions).

Back to top