OnScreenSaverActivator Event



 
Fires when one of the screensaver sensors (WebCam, TF2000, ProxMat) detects activity/inactivity.


Syntax

    SiteKiosk.ScreenSaver.OnScreenSaverActivator = handler
Parameters
    avb_Activate Bool value, true if sensor detects activity.
    abs_Clsid String that contains the id of the sensor.
Remarks
    Sensor ids:

    TF2000: 8AEAE269-EF28-4315-BCA6-ACAC1CA9C7F5
    ProxMat: F062A0E7-1577-454A-9257-0E05A5B338AC
    WebCam: 00711770-0FD4-49fb-B14A-353698A6C245
Examples
    The following writes status and id of the sensor into the SiteKiosk log file.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteKiosk.ScreenSaver.OnScreenSaverActivator = OnScreenSaverActivator;
    function OnScreenSaverActivator(avb_Activate,abs_Clsid)
    {
       SiteKiosk.Logfile.Notification("Status: " + avb_Activate);
       SiteKiosk.Logfile.Notification("Device: " + abs_Clsid);
    }
    </SCRIPT>

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

Back to top