Skip to main content
Version: Deprecated Pages
View as Markdown

system.nav.centerWindow

Deprecated by system.vision variations in 8.3

This function was replaced with system.vision.centerWindow.

Click here to learn more about system.vision variations.

This function is used in Python Scripting.

Description​

Given a window path, or a reference to a window itself, it will center the window. The window should be floating an non-maximized. If the window can't be found, this function will do nothing.

Client Permission Restrictions​

This scripting function has no Client Permission restrictions.

Syntax #1 (String param)​

system.nav.centerWindow(windowPath)

Parameters​

TypeParameterDescription
StringwindowPathThe path of the window to center.

Returns​

Nothing

Scope​

Vision Client

Syntax #2 (FPMIWindow param)​

system.nav.centerWindow(window)

Parameters​

TypeParameterDescription
FPMIWindowwindowA reference to the window to center.

Returns​

Nothing

Scope​

Vision Client

Code Examples​

Example #1
# This example centers the window named 'Overview'.
system.nav.centerWindow('Overview')