I’m making changes to a very old project, I’m trying write a script to a button that opens a “window” in a different “desktop” than the one containing the button.
You need to get a reference to that separate desktop and run the appropriate method from that reference:
https://docs.inductiveautomation.com/display/DOC81/system.gui.desktop
I did that when I was trying to close a window in a specific desktop by doing:
target_window = system.gui.desktop('dsk_name').getWindow('win_name')
system.nav.closeWindow(target_window)
When attempting to open a window in a specific desktop however I was able to get it working with the following code:
system.gui.desktop('dsk_name').system.nav.openWindow('win_name')
That last is kinda strange. I would have expected you to use:
system.nav.desktop('dsk_name').openWindow('win_name')
Note the similarity between system.gui.desktop
and system.nav.desktop
.
I just found it in the documentation for Multi-Monitor Client and yes it’s exactly what you just mentioned. I appreciate all your help!