You're currently browsing the Ignition 8.0 docs. Click here to view the latest docs.

This function is used in Python Scripting.

Description

Returns the number of seconds since any keyboard or mouse activity.

This function will always return zero in the Designer.

Client Permission Restrictions

This scripting function has no Client Permission restrictions.

Syntax

system.util.getInactivitySeconds()

  • Parameters

none

  • Returns

long - The number of seconds the mouse and keyboard have been inactive for this client.

  • Scope

Vision Client

Code Examples
Code Snippet
# This code could run in a global timer script.
# After a 5-minute timeout, navigate back to the home screen
if system.util.getInactivitySeconds()>300 and system.nav.getCurrentWindow()!="Home":
   system.nav.swapTo("Home")
Keywords

system util getInactivitySeconds, util.getInactivitySeconds

  • No labels