# Getting Window Type

**URL:** <https://forum.inductiveautomation.com/t/getting-window-type/16421>\
**Category:** Ignition\
**Created:** [December 26, 2017, 10:40pm UTC](https://forum.inductiveautomation.com/t/getting-window-type/16421 "2017-12-26T22:40:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasoncoope](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jasoncoope/32/18674_2.png) [@jasoncoope](https://forum.inductiveautomation.com/u/jasoncoope)\
**Post date:** [December 26, 2017, 10:40pm UTC](https://forum.inductiveautomation.com/t/getting-window-type/16421/1 "2017-12-26T22:40:55Z")

</div>

Am calling system.gui.getWindows() to return a tuple of all project windows. Is there a way or a function call that will tell me the window type of each window i.e. Main Window, Docked Window or popup? Am trying to build a dynamic navigation tree view from available project windows.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 26, 2017, 10:49pm UTC](https://forum.inductiveautomation.com/t/getting-window-type/16421/2 "2017-12-26T22:49:12Z")

</div>

The only fundamental difference between the different window types are in their properties; eg a ‘Main Window’ will have ‘Start Maximized’ (scripting: `startMaximized`) set to True, where a popup will not - and a docked window will have a defined ‘Dock Position’ (scripting: `dockPosition`), rather than be set to ‘Floating’. These can be inspected from the Window object you get out of `system.gui.getWindow(path/to/window)`

There is not an official way to get this information about a window that’s not currently open in the client - you would have to dig into [the API](http://files.inductiveautomation.com/sdk/javadoc/ignition79/794-beta1/index.html) to figure out how to do this (and here there be dragons, because the API is subject to change without notice, so relying on it for complex scripting can promise you future headaches).

---

<div class="post-metadata">

**Author:** ![jasoncoope](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jasoncoope/32/18674_2.png) [@jasoncoope](https://forum.inductiveautomation.com/u/jasoncoope)\
**Post date:** [December 27, 2017, 12:48am UTC](https://forum.inductiveautomation.com/t/getting-window-type/16421/3 "2017-12-27T00:48:38Z")

</div>

Appreciate the quick response.
