EmEditor Home - EmEditor Help - EmEditor Macro Reference - Shell Object

ForegroundWindow Property

Retrieves the current foreground window.

[JavaScript]

wnd = shell.ForegroundWindow;

[VBScript]

wnd = shell.ForegroundWindow

Examples

[JavaScript]

wnd = shell.FouregroundWindow;
str = wnd.Caption;
alert( str );
 

[VBScript]

wnd = shell.FouregroundWindow
str = wnd.Caption
alert str
 

Version

Supported on EmEditor Professional Version 7.00 or later.

Copyright 2003-2014 by Emurasoft, Inc.