Gets the window number of the active CitectSCADA window. This number can be used with other functions to control the window.
String name previously associated with a window number using WinSetName().
Window Number associated with the Name provided. If no Name is specified then the active window number is returned. If there isn't a valid window number associated with the name provided then -1 is returned.
WinNew, WinGoto, WinSetName
! Create a new window, but keep the active window the same: