Show/Hide Toolbars

EmEditor Help

Navigation: EmEditor Help > Macro Reference > Shell Object > Properties

EmEditor Macro Reference: ForegroundWindow Property

Scroll Prev Top Next More
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-2016 by Emurasoft, Inc.