Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: edits/style
Scripting_function


Panel
titleDescription

Finds and returns a list of windows with the given path. If the window is not open, an empty list will be returned. Useful for finding all instances of an open window that were opened with system.nav.openWindowInstance.

Client permissions restrictions


Panel
titleSyntax

system.gui.findWindow(path)

  • Parameters

String path - The path of the window to search for.

  • Returns

List - A list of window objects. May be empty if window is not open, or have more than one entry if multiple windows are open.

  • Scope

Vision Client

Panel
titleCode Examples
Code Block
languagepy
titleCode Snippet - Finding a Window and Closing It
# This example finds all of the open instances of the window named "Popup" and closes them all.
 
allInstances = system.gui.findWindow("Popup")
for window in allInstances:
    system.nav.closeWindow(window)
Panel
titleKeywords

system gui findWindow, gui.findWindow