Count Property (Windows Collection)
Retrieves the number of windows. Supported on EmEditor Professional Version 7.00 or later.[JavaScript]
nCount = shell.windows.Count;
[VBScript]
nCount = shell.windows.Count
Examples
[JavaScript]
alert( "Number of top-level windows: " + shell.windows.Count );
[VBScript]
alert "Number of top-level windows: " & shell.windows.Count
Version