system.vision.centerWindow
This function replaces system.nav.centerWindow. Any scripts containing Vision Client scoped functions that were replaced with system.vision syntax will still work to maintain backwards compatibility. Only the system.vision variations will appear in the Script Editor's autocomplete popup.
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.
This function is available on secondary desktops via the system.vision.desktop function. See the Multi-Monitor Clients page for more details on secondary desktops.
Client Permission Restrictions​
This scripting function has no Client Permission restrictions.
Syntax #1 (String param)​
system.vision.centerWindow(windowPath)
Parameters​
Type | Parameter | Description |
---|---|---|
String | windowPath | The path of the window to center. |
Returns​
Nothing
Scope​
Vision Client
Syntax #2 (FPMIWindow param)​
system.vision.centerWindow(window)
Parameters​
Type | Parameter | Description |
---|---|---|
FPMIWindow | window | A reference to the window to center. |
Returns​
Nothing
Scope​
Vision Client
Code Examples​
# This example centers the window named 'Overview'.
system.vision.centerWindow('Overview')