Top  | Previous | Next

system.nav.getCurrentWindow

Description

Returns the path of the current "main screen" window, which is defined as the maximized window. With the Typical Navigation Strategy, there is only ever one maximized window at a time.

Syntax

system.nav.getCurrentWindow()

Parameters

none

Returns

String - The path of the current "main screen" window - the maximized window.

Scope

Client

Examples

# 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")