ForegroundWindow Property (Shell Object)
Retrieves the current foreground window. Supported on EmEditor Professional Version 7.00 or later.[JavaScript]
wnd = shell.ForegroundWindow;
[VBScript]
wnd = shell.ForegroundWindow
Examples
[JavaScript]
wnd = shell.ForegroundWindow;
str = wnd.Caption;
alert( str );
[VBScript]
wnd = shell.ForegroundWindow
str = wnd.Caption
alert str
Version