# Scripting with the window size

**URL:** <https://forum.inductiveautomation.com/t/scripting-with-the-window-size/6145>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [April 3, 2013, 11:58am UTC](https://forum.inductiveautomation.com/t/scripting-with-the-window-size/6145 "2013-04-03T11:58:59Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [April 3, 2013, 3:16pm UTC](https://forum.inductiveautomation.com/t/scripting-with-the-window-size/6145/4 "2013-04-03T15:16:04Z")

</div>

Sorry, couldn’t let this one pass…

This one will get screen resolution for you.

```python
import java.awt
gd=java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice()
width = gd.getDisplayMode().getWidth()
height = gd.getDisplayMode().getHeight()

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/scripting-with-the-window-size/6145)._
