# Open message box on different window

**URL:** <https://forum.inductiveautomation.com/t/open-message-box-on-different-window/29423>\
**Category:** Ignition\
**Created:** [October 26, 2019, 4:08pm UTC](https://forum.inductiveautomation.com/t/open-message-box-on-different-window/29423 "2019-10-26T16:08:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunal.ghule](https://avatars.discourse-cdn.com/v4/letter/k/5daacb/32.png) [@kunal.ghule](https://forum.inductiveautomation.com/u/kunal.ghule)\
**Post date:** [October 26, 2019, 4:08pm UTC](https://forum.inductiveautomation.com/t/open-message-box-on-different-window/29423/1 "2019-10-26T16:08:56Z")

</div>

I’m working on a project with 2 monitors, 2nd monitor is being controlled through system.gui.openDesktop.

Is there a way to open message box on 2nd screen, as it always opens on 1st.

Thank you.

---

<div class="post-metadata">

**Author:** ![amansour](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@amansour](https://forum.inductiveautomation.com/u/amansour)\
**Post date:** [November 8, 2019, 9:38pm UTC](https://forum.inductiveautomation.com/t/open-message-box-on-different-window/29423/2 "2019-11-08T21:38:18Z")

</div>

Hey Kunal,

Yes, you can use the following code to specify which monitor to open a window on as described here: [https://docs.inductiveautomation.com/display/DOC80/system.gui.openDesktop](https://docs.inductiveautomation.com/display/DOC80/system.gui.openDesktop)

```auto
system.gui.openDesktop(screen=0, windows=["Overview"])

```

The `screen` value is the computer monitor number you want to display the window on.

Anthony
