Support Request: Execute Script on startup

Description

Browser-Engine: Internet Explorer
Skin: Start Screen

When we Start Skitekiosk (on "Start Once" or on "Auto Start" mode), our script with a simple form (name and accepting terms) appears in front of the screen (OK). If nobody touches the equipment, the screensaver activates normally (OK). If someone touches the equipment, the screensaver de-activates, the script runs and the form appears again (OK).
However, if we click the "Logout" buton, the script does not run once the sitekiosk starts again. It goes directly to the start screen (NOT OK!).

Answer: (9)

Re: Execute Script on startup 8/1/2017 10:31 AM
Hello,

That is a dedicated behavior. SiteKiosk executes external scripts on startup only:
http://www.provisio.com/helpconsole/SiteKiosk%20Help/en-US/default.htm?advanced_settings.htm#four

You may check using the “OnReset Event” to execute the function again on logout:
http://www.provisio.com/helpconsole/SiteKiosk%20Object%20Model%20Help/en-US/default.htm?sitekiosk_onreset_evt.htm

As SiteKiosk reloads the skin and the web page on logout you may also add a little delay before opening the form again. E.g. by using the “AddDelayedEvent“ Method:
http://www.provisio.com/helpconsole/SiteKiosk%20Object%20Model%20Help/en-US/default.htm?scheduler_adddelayedevent_mth.htm

Documentation:
- General Information about customizing SiteKiosk: http://www.provisio.com/web/us/features/siteskin
- SiteKiosk help: http://www.provisio.com/helpconsole/SiteKiosk%20Help/en-US/default.htm?customization_%28site_skin%29.htm
- SiteKiosk Object model help: http://www.provisio.com/helpconsole/SiteKiosk%20Object%20Model%20Help/en-US/default.htm?index.htm

Regards,
Michael Olbrich
Re: Execute Script on startup 8/1/2017 10:52 AM
Our script is very simple and was created according to what you indicate. And it works when sitekiosk starts. But not when we do logout.



 SiteKiosk.Logfile.Notification('===== LOADING SCRIPT ====');

var delay_start= 2000;
var delay_after_screensaver= 250;

pg_ScheduleTOS( delay_start );

SiteKiosk.ScreenSaver.OnScreenSaverEnd = function() {

		SiteKiosk.Logfile.Notification('===== EVENT: SCREEN SAVER *END* TRIGGERED ====');

		SiteKiosk.SiteKioskUI.CloseHtmlDialogs("pg_Login");
		
		pg_ScheduleTOS( delay_after_screensaver );
}

var gk_LoginDialog = SiteKiosk.SiteKioskUI.CreateHTMLDialog();

with ( gk_LoginDialog ) {

	URL = "file://" + SiteKiosk.SiteKioskDirectory + "Html/Play Global/pagina_login.html";

	Type= 'pg_Login';

	Border = false;
	Closable = false;
	CloseOnInput = false;
	PreventInput = false;
	ScrollBars = true;
	Sysmenu = false;
	Title = false;
	TopMostWindow = true;
}

function pg_ScheduleTOS(delay){
 
 	SiteKiosk.Scheduler.AddDelayedEvent(delay, pg_ShowTOS);
}

function pg_ShowTOS() {

	SiteKiosk.Logfile.Notification('===== EVENT: LOGIN PAGE OPENED ====');

	gk_LoginDialog.Maximize();
	gk_LoginDialog.ShowModal();
} 




We think your skin has a bug
Re: Execute Script on startup 8/1/2017 11:21 AM
Hello,

As stated this is dedicated behavior and not a bug.

You can add this to your script to make sure it loads again on logout:

SiteKiosk.OnReset = OnReset;
function OnReset(){
  SiteKiosk.SiteKioskUI.CloseHtmlDialogs("pg_Login");
   pg_ScheduleTOS( delay_start );
}

Regards,
Michael Olbrich
Re: Execute Script on startup 9/5/2017 7:01 PM
The code you gave works and forces the script to load after logout. But if Sitekiosk enter to screensaver (wich executes logout) the script loads too, and we have no screensaver. We are using Sitekiosk Player.

What do you suggest?
Re: Execute Script on startup 9/6/2017 9:15 AM
Hello,

The script was just a simple example without further support.
You should search the Object Model help for an event is more suitable for what you want to achieve.

Please understand that our free support cannot offer any assistance with creating your own code or customizing the skin files (apart from the detailed SiteKiosk and SiteKiosk Object Model documentation).
http://www.provisio.com/helpconsole/SiteKiosk%20Help/en-US/default.htm?support.htm

Documentation:
- General Information about customizing SiteKiosk: http://www.provisio.com/web/us/features/siteskin
- SiteKiosk help: http://www.provisio.com/helpconsole/SiteKiosk%20Help/en-US/default.htm?customization_%28site_skin%29.htm
- SiteKiosk Object model help: http://www.provisio.com/helpconsole/SiteKiosk%20Object%20Model%20Help/en-US/default.htm?index.htm
If you need further assistance in creating individual coding solutions you can contact us via e-mail that we may find a solution against payment for your needs.

In case you are interested in a solution against payment please write a detailed description to support-europe(at)provisio.com that we can check the technical feasibility and the amount of work to make a quotation.
The adjustment fees are depending on the complexity of the changes and in general it costs 120 Euro per hour.

Regards,
Michael Olbrich
Pages (2): [1] 2 Next »
My Account
Login
Language (Tickets):