# Get size of unopened windows

**URL:** <https://forum.inductiveautomation.com/t/get-size-of-unopened-windows/21032>\
**Category:** Ignition\
**Created:** [November 23, 2018, 6:01am UTC](https://forum.inductiveautomation.com/t/get-size-of-unopened-windows/21032 "2018-11-23T06:01:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [November 23, 2018, 6:01am UTC](https://forum.inductiveautomation.com/t/get-size-of-unopened-windows/21032/1 "2018-11-23T06:01:24Z")

</div>

I’m looking to get a list of all of the Windows that we have in our SCADA system, and categorise them by main/popup/docked by pulling the info from their config using their size, layer, and docking settings.  
I am getting the full list of windows using `system.gui.getWindowNames()`, but I don’t know where to go to from here to pull out their properties?

I’ve tried using:

```auto
from com.inductiveautomation.factorypmi.application import FPMIWindow
windowPaths = system.gui.getWindowNames()
windows = [FPMIWindow(windowPath) for windowPath in windowPaths]

print windows[0].preferredSize

```

but all I get are 0’s. I presume it’s because the windows aren’t actually open, so really they don’t have a width… How do I get to the config object instead, so that I can read the config I need?

---

<div class="post-metadata">

**Author:** ![eric.petke](https://avatars.discourse-cdn.com/v4/letter/e/7feea3/32.png) [@eric.petke](https://forum.inductiveautomation.com/u/eric.petke)\
**Post date:** [February 28, 2022, 12:20pm UTC](https://forum.inductiveautomation.com/t/get-size-of-unopened-windows/21032/2 "2022-02-28T12:20:17Z")

</div>

Hello @nminchin. Did you find a way to achieve that? i am actually also interrested on it.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [February 28, 2022, 12:48pm UTC](https://forum.inductiveautomation.com/t/get-size-of-unopened-windows/21032/3 "2022-02-28T12:48:35Z")

</div>

What i posted here could be repurposed to return "size" instead of text/tooltiptext/title (of only the root then i suppose)

> [@Export all component text used in Ignition](https://forum.inductiveautomation.com/t/export-all-component-text-used-in-ignition/53668/8):
>
> This should work in a button for vision… pro tip dont try to understand this one xD There is a bucnh of things that dont get used or are not needed but… it works xd (again dont do this to often, it may take long xd) from com.inductiveautomation.factorypmi.application.binding.action import ActionAdapter class ProjectResources: def \_\_init\_\_(self): import system from javax.swing import JFrame from java.awt.event import WindowEvent if system.util.getSystemFlags() & system.util.DESI…

for the print i didnt do only the root object yet tho

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/0/407137ecc77d286b064aea993f3b8174c2f9ffe9.png)

not all of the code will be needed for this tho, but it gets you started

(seems to need to be version 8.1+)
