Windows collection provides a collection of window objects.
| Count | Retrieves the number of windows. |
| Item | Retrieves the window object for the window of the specified index. |
wnds = new Enumerator( shell.windows );
for( ; !wnds .atEnd(); wnds.moveNext() ){
wnd = wnds.item();
if( wnd.Caption == "Calculator" ){
alert( "Found Calculator window" );
break;
}
}
For Each wnd In shell.windows
If wnd.Caption = "Calculator" Then
alert "Found Calculator window"
Exit For
End If
Next
Supported on EmEditor Professional Version 7.00 or later.
Send feedback on this topic to Emurasoft