GotoCurrentPage()

This example script supposes that a kiosk page might be left in a particular state by a user and which we therefore want to reset after a time. We suppose that a timer variable called timeOut is being maintained elsewhere which increments every second so long as there is no mouse movement or other user input, essentially testing for inactivity. We then run the following script every second (using a ticker trigger for example).

In this script the timer variable is checked to see if 40 seconds have elapsed (remember that the timer variable may not be at exactly 40 when this script is called so we check to see if it is Greater Than or Equal to. If so the page is reset by using the GotoCurrentPage() action.

 

if (timeout >= 40)

{

//reset page

GotoCurrentPage()

}

Close