Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: edits/style, syntax
Scripting_function


Panel
titleDescription

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


Note_friendly

This function will always return zero in the Designer.

Client permissions restrictions


Panel
titleSyntax

system.util.getInactivitySeconds()

  • Parameters

noneNothing

  • Returns

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

  • Scope

Vision Client

Panel
titleCode Examples
Code Block
languagepy
titleCode 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")
Panel
titleKeywords

system util getInactivitySeconds, util.getInactivitySeconds