I am using a pop up with a custom property to pass an integer representing a machine number.
There are groups of up to five of these machine icons on several main windows.
When the user clicks on one of the icons, the pop-up is opened and the integer is passed to the pop-up and all of this is working well. The title of the popup contains a reference to the integer and so the window name as shown under navigation also shows that value.
I want the user to be able to open multiple instances of the window, but not multiple instances of pop-ups with the same machine number.
I am not having much luck figuring out a script to handle this. When I use system.gui.getOpenedWindows(), the tuple returned contains the same strings for all instances whether or not they were opened with unique values.
Is there a way to determine if a particular instance with a certain custom property value has already been opened?
Perhaps there is a way to use memory tags or something as flags that can be set when a pop up is opened. Or if there is a script that can identify the ‘Number’ within the opened pop-ups to skip re-opening them.