exitCode = appExecute(strCommandLine, strAppTitle, strStartIn, bWait);
If bWait is set to true then this function excutes the specified command line and returned the application's exit code. Otherwise it executes the command line and then looks for the main window of the application. Unless specifically closed (with appRelease(true)) the application will continue to run even after the script terminates.
// 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);
wnd Overview | wnd.appAttach | wnd.appRelease