# Browse windows, templates with script?

**URL:** <https://forum.inductiveautomation.com/t/browse-windows-templates-with-script/67797>\
**Category:** Ignition\
**Tags:** ignition81, vision, scripting\
**Created:** [December 19, 2022, 5:33pm UTC](https://forum.inductiveautomation.com/t/browse-windows-templates-with-script/67797 "2022-12-19T17:33:50Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [December 20, 2022, 1:26am UTC](https://forum.inductiveautomation.com/t/browse-windows-templates-with-script/67797/4 "2022-12-20T01:26:29Z")

</div>

Paul's suggestion is the simplest solution for most scenarios. As the documentation shows, simply select the "All Windows" option and perform the search:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/4/04b4e1632a44393a8c9780ebd6e7561b0043c891.png)

However, if it's something complicated that requires scripting, the following code will do the work for you:

```auto
for name in system.gui.getWindowNames():
	system.nav.openWindow(name)
	components = system.gui.getWindow(name).getRootContainer().getComponents()
	for component in components:
		#identify your component, and do the necessary work here
	system.nav.closeWindow(name)

```

Here is a more advanced example that effectively illustrates such a scenario:

> [@Ignition 8.1 PowerTable header background color](https://forum.inductiveautomation.com/t/ignition-8-1-powertable-header-background-color/64854/15):
>
> Using @PGriffith's direction, I have developed a script that will accomplish the goal of globally changing all power table header configurations from the designer. The script opens every vision window, then loops through getting all of the components from each window's root container. Then it checks each component list for power tables and nested containers. If there is a nested container, it repeats the process until there are no more nested containers.\* \*For each power table found, if the con…

---

_[View the full topic](https://forum.inductiveautomation.com/t/browse-windows-templates-with-script/67797)._
