Can someone tell me if there is an easier way to tell if a window is still open? I have a case where a task is being done. Once it is done, the window is closed. However, the user can close the window before then.
I can't find the jsl command that equals Is Valid
J
window_ptr = New Window( "hi", Text Box( "abcd" ) );
window_title = (window_ptr << Get Window Title());
Wait( 5 );
windows = Window();
window_open = 1;
For( i = 1, i <= N Items( windows ), i++,
tmp_title = (windows << get window title);
If( window_title == tmp_title,
window_open = 0
);
);
If( window_open == 1,
Print( " window is closed." ),
Print( " window is open." )
);