Well, the way I do it is by creating a global array where I store all my opened PlusWnd objects in. Then, in my general window creator function, I say that if
typeof Wnd[WndId] == "object", it should focus the existing window instead of opening a new one. But you must remember that in all
OnWndIdEvent_Destroyed events, you should set the value of the window's member in the array to
false, or remove it from the array.
You can see a working example of this in all of my scripts, the most recent is Log Manager, but Countdown Live and Calculator also have such (older) functions. Feel free to copy/modify/mess with the code you need to do this, but please ask for permission if you want to copy some other sh*t.