Windows Collection¶
Windows collection provides a collection of window objects. Retrieves the number of windows. Retrieves the window object for the window of the specified index. Supported on EmEditor Professional Version 7.00 or later.Properties¶
Examples¶
[JavaScript]¶
wnds = new Enumerator( shell.windows );
for( ; !wnds .atEnd(); wnds.moveNext() ){
wnd = wnds.item();
if( wnd.Caption == "Calculator" ){
alert( "Found Calculator window" );
break;
}
}
[VBScript]¶
For Each wnd In shell.windows
If wnd.Caption = "Calculator" Then
alert "Found Calculator window"
Exit For
End If
Next
Version¶