Show/Hide Toolbars

EmEditor Help

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

EmEditor Macro Reference: FindWindow Method

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

FindWindow Method

Finds the child Window object by a class name and/or by a window title.

[JavaScript]

wndChild = wnd.FindWindow( strClass, strCaption );

[VBScript]

wndChild = wnd.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 = FindWindow( "EmEditorView", "" );

alert( wnd.Caption );

 

[VBScript]

wnd = FindWindow( "EmEditorView", "" )

alert wnd.Caption

 

Version

Supported on EmEditor Professional Version 7.00 or later.

Copyright © 2003-2016 by Emurasoft, Inc.