I am trying to create a script where I open a window, then double click on a row in a table which opens another window. I then am going to compare the values displayed on each screen to make sure that the second window actually displayed. I am first trying to do this with the caption. However, when I do a GetCaption I receive a message stating that the window is "not unique." The GetCaption for the first window works because it is the only one open. But the GetCaption for the second window fails because there are now two windows open. Any ideas on how I can handle this?
That will take care of the "not unique" complaint (if the Agent option is set). Keep in mind, however, that once you set MyWin2 active, ST may now see this as the first instance, for which the above tag is no longer valild. I'd say for moveable win objects, stick with your solution.