Company Christmas Holidays
North American Headquarters in Miami, USA: Dec 25, 2015, Jan 1st 2016
European Headquarters in Muenster, Germany: Dec 21, 2015 until Jan 03rd 2016
Limited support is available during this period.
We at PROVISIO wish you Merry Christmas and a Happy New Year!


Automatic printout of a webpage

If you add the following script example (IE Engine) to the code of your webpage it will be printed automatically by accessing it.

It works without any user interaction if you configure SiteKiosk with “Print webpage as laid out on screen (without user interaction)” or “Automatically Print Largest Frame (without user interaction)” in the print settings of the configuration.

If you use the printer monitoring of SiteKiosk you also have to deactivate “User must confirm print jobs“ in the advanced settings of the printer monitoring.


window.external.InitScriptInterface();
function PrintExtWindow()
{
	if (gk_Window.SiteKioskWebBrowser.WebBrowser.ReadyState == 4)
	{
		gk_Window.SiteKioskWebBrowser.Print();
		gk_Window.Close();
		window.clearInterval(gi_Interval);
	}
}
var gk_Window = SiteKiosk.SiteKioskUI.CreateBrowserWindow();
gk_Window.SiteKioskWebBrowser.Navigate("your_webpage");
gk_Window.Move(0, 0, 0, 0);
window.setTimeout("gk_Window.Hide();", 1);
var gi_Interval = window.setInterval("PrintExtWindow();", 100);


Please consider that you have to give script permission to the URL resp. path of the html page you are using this script.

Print selected webpages

This script examples shows you how to restrict printing to certain pages. For further information please open the Javascript file from the zip archive with an editor and read the readme section.
System requirements : SiteKiosk 5.00

Edit the SiteKiosk configuration

Example to directly edit the SiteKiosk configuration, e.g. by using SiteRemote script jobs.
System requirements : SiteKiosk 7.0

Show HTML dialogs

This script shows how to create HTML dialogs. The appearance can be altered by the web developer.

In this extract a dialog is displayed:
function showdialog() 
{ 
mydialog = SiteKiosk.SiteKioskUI.CreateHTMLDialog(); 
mydialog.Border = true; 
mydialog.ScrollBars = true; 
mydialog.Sysmenu = true; 
mydialog.Title = true; 
mydialog.URL = "http://www.lycos.com/"; 
mydialog.Width = 400; 
mydialog.Height = 300; 
mydialog.ShowDialog(); 
} 
System requirements : SiteKiosk 5.00
Note : IE Engine

Send E-Mails

Using this example, you can send E-Mails through your own mail account.

 function sendMail() 
{ 
mymail = SiteKiosk.Email.CreateJob(0); 
mymail.POPServer = "pop.myserver.com"; 
mymail.POPPort = 110;
mymail.Username = "myusername"; 
mymail.Password = "mypassword"; 
mymail.SMTPServer = "mail.myserver.com"; 
mymail.SMTPPort = 25; 
mymail.Authentication = 2; // pop before smtp 
mymail.SetSender ("sender@server.com", "Sender name"); 
mymail.AddRecipient("recipient@server.com"); 
mymail.Subject = "subject"; 
mymail.PlainBody = "This is the content."; 
mymail.Send(0, false, true); 
} 
System requirements : SiteKiosk 5.00
Note : IE Engine

Show / hide the touch screen keyboard

In this example, the touch screen keyboard can be pulled in, pulled out, shown or hidden.

This extract switches the visibility:
function showHide() 
{ 
if (SiteKiosk.Keyboard.Initialized) 
SiteKiosk.Keyboard.Visible = !SiteKiosk.Keyboard.Visible; 
} 
System requirements : SiteKiosk 5.00
Note : IE Engine

Call functions automatically at different times

Using this script you can define functions that will be called automatically at a specified day and time.

There are two modes:
1) Define functions that will be called at a specified time every day
2) Define different functions for every day of the year

Click the download link and save the script. Open the configuration wizard and register the file under "Display -> Browserdesign -> Advanced -> Execute scriptfile".
Open the file and specify the days, times and functions. You will find more help in the file.

For example, if you want your terminal to navigate to an address every day at 3:00pm and 6:30pm:
 
everydaymode = true; 
sEveryDay[15][00] = "navigate('http://www.adresse.de')"; 
sEveryDay[18][30] = "navigate('http://www.adresse.de')"; 
Or, if you want your terminal to navigate to an address only on June 23th at 3:00pm and 6:30pm:
 
everydaymode = false;
 sWeekDays[23][06][15][00] = "navigate('http://www.adresse.de/')"; 
sWeekDays[23][06][18][30] = "navigate('http://www.adresse.de/')"; 

Save the changes and start SiteKiosk.
System requirements : SiteKiosk 5.00
Note : IE Engine

Dynamically change the content of a second monitor

This script examples shows you how to dynamically change the content of a second monitor by events taking place on the main monitor.
System requirements : SiteKiosk 7.0
Note : IE Engine