--- title: "system.nav.getCurrentWindow" description: "Returns the path of the current \"main screen\" window, which is defined as the maximized window." --- # system.nav.getCurrentWindow > Returns the path of the current "main screen" window, which is defined as the maximized window. This function is used in **Python Scripting**. ## Description Returns the path of the current "main screen" window, which is defined as the maximized window. With the [Typical Navigation Strategy](visualization-and-dashboards\windows\navigation-windows\navigation-windows.md), there is only ever one maximized window at a time. ## Client Permission Restrictions This scripting function has no [Client Permission](projects\project-properties\project-properties.md#client---permissions) restrictions. ## Syntax `system.nav.getCurrentWindow()` ### Parameters None ### Returns **String** - The path of the current "main screen" window - the maximized window. ### Scope Client ## Code Examples ```python title="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") ```