Ticket ID: 16184
|
Creation Date: 1/25/2011 1:05 AM
|
Product: SiteKiosk Classic Windows
|
Attachment: -
|
TicketType: Support Request
|
Version: 7.7.313
|
Language: English
|
Views: 30686
|
Last Modification Date: 1/27/2011 9:37 AM
|
Platform:
Windows XP Professional
|
|
Level: Closed
|
IE: 7.0 |
|
Bug Status: Fixed
|
User account: SiteKiosk Restricted User
|
Bug Frequency: On every start
|
|
Support Request: OnScreenSaverBegin fires on begin and end of screen saver
Reproduction
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.