# Identify window instances

**URL:** <https://forum.inductiveautomation.com/t/identify-window-instances/15071>\
**Category:** Ignition\
**Created:** [August 15, 2017, 5:31pm UTC](https://forum.inductiveautomation.com/t/identify-window-instances/15071 "2017-08-15T17:31:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamthebull](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@iamthebull](https://forum.inductiveautomation.com/u/iamthebull)\
**Post date:** [August 15, 2017, 5:31pm UTC](https://forum.inductiveautomation.com/t/identify-window-instances/15071/1 "2017-08-15T17:31:19Z")

</div>

If I have two window instances open and I use system.gui.getOpenedWindows() then I get two window objects that have the same name. How do I distinguish between the two? Is there a unique property that I can read from the window object? Also, can I read a property that will tell me the type of window (ie. main or popup)?

---

<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:** [August 15, 2017, 5:39pm UTC](https://forum.inductiveautomation.com/t/identify-window-instances/15071/2 "2017-08-15T17:39:08Z")

</div>

```auto
windows = system.gui.getOpenedWindows()

for window in windows:
	print window.getTitle(), window.getPath(), window.getName(), window.hashCode()

```

`window.hashCode()` will give you a unique id for each otherwise identical window.  
`window.isStartMaximized()` should give you a good idea of whether it’s a popup window or not.

---

<div class="post-metadata">

**Author:** ![iamthebull](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@iamthebull](https://forum.inductiveautomation.com/u/iamthebull)\
**Post date:** [August 15, 2017, 5:51pm UTC](https://forum.inductiveautomation.com/t/identify-window-instances/15071/3 "2017-08-15T17:51:59Z")

</div>

Is there any difference between a main and popup window other than by default the main window opens maximized?

---

<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:** [August 15, 2017, 6:38pm UTC](https://forum.inductiveautomation.com/t/identify-window-instances/15071/4 "2017-08-15T18:38:13Z")

</div>

They’re both variations on the same object; popups are just set to ‘Maximizable’ but not ‘Start Maximized’ by default. The other changes between the two are entirely cosmetic.
