Skip to main content
Version: Deprecated Pages
View as Markdown

system.gui.getWindowNames

Deprecated by system.vision variations in 8.3

This function was replaced with system.vision.getWindowNames.

Click here to learn more about system.vision variations.

This function is used in Python Scripting.

Description​

Returns a list of the paths of all windows in the current project, sorted alphabetically.

Client Permission Restrictions​

This scripting function has no Client Permission restrictions.

Syntax​

system.gui.getWindowNames()

Parameters​

None

Returns​

Tuple - A tuple of strings, representing the path of each window defined in the current project.

Scope​

Vision Client

Code Examples​

Example #1
# This example would open windows that begin with "Motor" and pass in the currently selected motor number.

motor = event.source.parent.number
windows = system.gui.getWindowNames()
for path in windows:
if name[:5] == "Motor":
system.nav.openWindow(path, {"motorNumber":motor})