How to find current vision screen index

Ignition 7.9.9
How to find current vision screen index ?

Depending projet launcher or propertie, a cvision client is launched on screen 0 or 1
(2 monitor)
I’d like find the current desktop screen index to move it to another screen with
system.gui.setScreenIndex()

Apparently, it’s pretty hard to do this in a reliable way:

Kyle Chase had something in this thread. I re uploaded the window because of dead links. :slight_smile: :