# "system.gui.openDesktop" Pass Parameter

**URL:** <https://forum.inductiveautomation.com/t/system-gui-opendesktop-pass-parameter/12772>\
**Category:** Ignition\
**Created:** [March 10, 2017, 2:14pm UTC](https://forum.inductiveautomation.com/t/system-gui-opendesktop-pass-parameter/12772 "2017-03-10T14:14:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MoisesZV](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@MoisesZV](https://forum.inductiveautomation.com/u/MoisesZV)\
**Post date:** [March 10, 2017, 2:14pm UTC](https://forum.inductiveautomation.com/t/system-gui-opendesktop-pass-parameter/12772/1 "2017-03-10T14:14:45Z")

</div>

Hi, I using “system.gui.openDesktop” to use multi monitors, I use “handle” property to give it a name, I wondering if is possible to pass a parameter to this new desktop.

```auto
system.gui.openDesktop(screen=1, handle="Monitor2", windows=["Pantalla1"])
```

---

<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:** [March 10, 2017, 5:00pm UTC](https://forum.inductiveautomation.com/t/system-gui-opendesktop-pass-parameter/12772/2 "2017-03-10T17:00:53Z")

</div>

It’s not possible to pass parameters directly in the openDesktop call, but since you already have the handle you can pretty easily grab the open window on the client and pass parameters in the next line of your script:

[docs.inductiveautomation.com/di … .getWindow](https://docs.inductiveautomation.com/display/DOC79/system.gui.getWindow)

`system.gui.openDesktop(screen=1, handle="Monitor2", windows=["Pantalla1"])
system.gui.desktop("Monitor2").getWindow("Pantalla1").parameter = someValue`

---

<div class="post-metadata">

**Author:** ![MoisesZV](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@MoisesZV](https://forum.inductiveautomation.com/u/MoisesZV)\
**Post date:** [March 10, 2017, 5:47pm UTC](https://forum.inductiveautomation.com/t/system-gui-opendesktop-pass-parameter/12772/3 "2017-03-10T17:47:11Z")

</div>

Thanks PGriffith,  
In my case I have a property on the root container so I did the next:

```auto
system.gui.openDesktop(screen=1, handle="Monitor2", windows=["Pantalla1"])
system.gui.desktop("Monitor2").getWindow("Pantalla1").rootContainer.valor = someValue")
```

Thanks for the help.
