Show/Hide Toolbars

EmEditor Help

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

EmEditor Macro Reference: FindWindow Method

Scroll Prev Top Next More
EmEditor Home - EmEditor Help - EmEditor Macro Reference - Shell Object

FindWindow Method

Finds the top-level Window object by a class name and/or by a window title.

[JavaScript]

wnd = shell.FindWindow( strClass, strCaption );

[VBScript]

wnd = shell.FindWindow( strClass, strCaption )

Parameters

strClass

Specifies the window's class name. If this parameter is empty, all class names match.

strCaption

Specifies the window name (title). If this parameter is empty, all window names match.

Examples

[JavaScript]

wnd = shell.FindWindow( "", "Calculator" );

wnd.SetForeground();

 

[VBScript]

wnd = shell.FindWindow( "", "Calculator" )

wnd.SetForeground

 

Version

Supported on EmEditor Professional Version 7.00 or later.

Copyright © 2003-2016 by Emurasoft, Inc.