# Launch Clients on Dual Monitor System

**URL:** <https://forum.inductiveautomation.com/t/launch-clients-on-dual-monitor-system/5463>\
**Category:** Ignition\
**Created:** [November 21, 2012, 8:29pm UTC](https://forum.inductiveautomation.com/t/launch-clients-on-dual-monitor-system/5463 "2012-11-21T20:29:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@jay](https://forum.inductiveautomation.com/u/jay)\
**Post date:** [November 21, 2012, 8:29pm UTC](https://forum.inductiveautomation.com/t/launch-clients-on-dual-monitor-system/5463/1 "2012-11-21T20:29:58Z")

</div>

I want to launch two clients from the same project on a dual monitor system. I want one to launch full-screen on the left monitor and the other to launch full-screen on the right monitor.

I see there is a project property called ‘Screen Index’. Can this value be passed in the java launch command line? Can I access and alter it on client startup?

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [November 28, 2012, 12:01am UTC](https://forum.inductiveautomation.com/t/launch-clients-on-dual-monitor-system/5463/2 "2012-11-28T00:01:02Z")

</div>

The only way that you would be able to do this is by launching two clients. But then you would need to have two separate projects because you couldn’t assign a different screen index to two different windows in the same project.

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [November 28, 2012, 4:02pm UTC](https://forum.inductiveautomation.com/t/launch-clients-on-dual-monitor-system/5463/3 "2012-11-28T16:02:05Z")

</div>

Thinking out loud here,

We have done something similar (but totally different 🙂 ) We have created a process that keeps track of clients opening a particular screen. In our case it was a screen to look at a remote (as in connected over GSM) device. The connection was only made when a user wanted to look at a device. If they closed the screen, we had to close the connection.

To apply the same system to what you want:

1. user loges in
2. a script runs querying a table in the db to see how many clients are running on this box (tag ‘[system]client/Network/IPAddress’)
3. if zero set screen index to 1  
3a. if one set screen index to 2
4. store ipaddress and screen index

We also created a watchdog on the server that would clear out old entries if the user didn’t logout cleanly. (think alt-f4 or reboot)

Hope this helps.

---

<div class="post-metadata">

**Author:** ![jay](https://avatars.discourse-cdn.com/v4/letter/j/ed8c4c/32.png) [@jay](https://forum.inductiveautomation.com/u/jay)\
**Post date:** [December 5, 2012, 3:37pm UTC](https://forum.inductiveautomation.com/t/launch-clients-on-dual-monitor-system/5463/4 "2012-12-05T15:37:25Z")

</div>

That sounds interesting, Robert. But how do set the screen index on the fly?

---

<div class="post-metadata">

**Author:** ![dep05d](https://avatars.discourse-cdn.com/v4/letter/d/e495f1/32.png) [@dep05d](https://forum.inductiveautomation.com/u/dep05d)\
**Post date:** [December 5, 2012, 6:23pm UTC](https://forum.inductiveautomation.com/t/launch-clients-on-dual-monitor-system/5463/5 "2012-12-05T18:23:25Z")

</div>

The window on this thread may help you with changing screen indexes. We used it to have one client pc drive multiple dashboard displays across a plant.

[http://inductiveautomation.com/forum/viewtopic.php?f=81&t=6017](http://inductiveautomation.com/forum/viewtopic.php?f=81&t=6017)

Good luck,

Dan

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [December 6, 2012, 6:04pm UTC](https://forum.inductiveautomation.com/t/launch-clients-on-dual-monitor-system/5463/6 "2012-12-06T18:04:52Z")

</div>

> [@jay](#):
>
> That sounds interesting, Robert. But how do set the screen index on the fly?

Good question! I don't know. ![:scratch:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/76d1620bec252bfac07050c889ff5a91dc8a9c25.gif ":scratch:")

Hopefully Dan's link above will help you.
