system.util.getInactivitySeconds
Description
Returns the number of seconds since any keyboard or mouse activity. Note - this function will always return zero in the Designer.
Syntax
system.util. getInactivitySeconds()
-
Parameters
none
-
Returns
long - The number of seconds the mouse and keyboard have been inactive for this client.
-
Scope
Client
Code Examples
Code Snippet
# This code could run in a global timer script.# After a 5-minute timeout, navigate back to the home screenif system.util.getInactivitySeconds()>300 and system.nav.getCurrentWindow()!="Home": system.nav.swapTo("Home")