ForegroundWindow Property (Shell Object)

Retrieves the current foreground window.

[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

Supported on EmEditor Professional Version 7.00 or later.