Ticket ID: 16184
|
Erstellungsdatum: 25.01.2011 01:05
|
Produkt: SiteKiosk Classic Windows
|
Anhang: -
|
Tickettyp: Support Anfrage
|
Version: 7.7.313
|
Sprache: Englisch
|
Aufrufe: 30815
|
Letzte Änderung: 27.01.2011 09:37
|
Plattform:
Windows XP Professional
|
|
Level: Geschlossen
|
IE: 7.0 |
|
Bug Status: Fixed
|
Benutzerkonto: SiteKiosk Restricted User
|
Häufigkeit: Bei jedem Start
|
|
Support Anfrage: OnScreenSaverBegin fires on begin and end of screen saver
Reproduktion
SiteKiosk.ScreenSaver.OnScreenSaverBegin = OnScreenSaverBegin;
function OnScreenSaverBegin()
{
SiteKiosk.Plugins('SiteCash').TerminateSession();
}
I am trying to clear all credit on a kiosk terminal whenever the screen saver activates. I created the following function which I placed in our start page.
SiteKiosk.ScreenSaver.OnScreenSaverBegin = OnScreenSaverBegin;
function OnScreenSaverBegin()
{
SiteKiosk.Plugins('SiteCash').TerminateSession();
}
In the skcfg file the "Do not activate screensaver if credit available" is disabled.
The code works as desired, if I have credit on a machine and the screensaver activates, the credit is wiped out.
However, the bug that is happening is, if you then insert a dollar, it will credit the kiosk, and when the screensaver deactivates, it will wipe out the credit.
It appears thatt the OnScreenSaverBegin is firing both on begin and end of screensaver because you can see the kiosk get credited with the cash amount for a split second until the screensaver fully deactivates, then the balance is cleared to zero and you are dumped to the desktop.
This error happens every time and in both admin and limited user accounts w/ and without system security setting enabled.