wnd.appAttach Method


appAttach(strAppTitle);

Searches for a top level window with the specified title and attaches to it. The method can also search for regular expression patterns.

Parameters

strAppTitle
Required. The title of the window to search and attach. Can be a regular expression pattern.

Example

// Create the object used to access the application
var app = new ActiveXObject("Wrappers.WNDWrapper");
app.appExecute("SampleWinCtrls.exe");

// Alternatively if the app is already started we could attach it
//app.appAttach("\\.*SampleWinCtrls"); // example of a regular expression match

// Create an instance of the main window object
var SampleWindow = new mainwnd(app);
SampleWindow.testAll();

// Close the application
app.appRelease(true);
		

See also

wnd Overview | wnd.appRelease | wnd.appExecute

 


© 2003 Lightweight Technologies. All rights reserved.