--- title: "system.vision.getWindowNames" description: "Returns a list of the paths of all windows in the current project, sorted alphabetically." --- # system.vision.getWindowNames > Returns a list of the paths of all windows in the current project, sorted alphabetically. :::info Backwards Compatibility This function replaces [system.gui.getWindowNames](versioned_docs/version-8.1/appendix/scripting-functions/system-gui/system-gui-getWindowNames.md). Any scripts containing Vision Client scoped functions that were replaced with system.vision syntax will still work to maintain backwards compatibility. ::: This function is used in **Python Scripting**. ## Description ## Client Permission Restrictions This scripting function has no [Client Permission](../../../ignition-modules/vision/vision-project-properties/vision-project-properties.md#vision-permissions-properties) restrictions. ## Syntax `system.vision.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 ```python title="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.vision.getWindowNames() for path in windows: if path[:5] == "Motor": system.vision.openWindow(path, {"motorNumber": motor}) ```