
54
2.0 Getting Started
2.10.9
Application Launch
2.10.9.1 closeAppHandle(handle)
2.10.9.1.1 Description
Closes the application handle.
2.10.9.1.2 Arguments
Argument
Type
Description
handle
Number
The application handle.
2.10.9.1.3 Returns
Nothing.
2.10.9.1.4 Constants
None.
2.10.9.1.5 Example
See the
run()
method.
2.10.9.2 isAppRunning(handle)
2.10.9.2.1 Description
Determines if an application is still running.
2.10.9.2.2 Arguments
Argument
Type
Description
handle
Number
The application handle.
2.10.9.2.3 Returns
Nothing.
2.10.9.2.4 Constants
true
if the application is still running,
false
otherwise.
2.10.9.2.5 Example
See the
run()
method.
2.10.9.3
run(program, argument, delay)
2.10.9.3.1 Description
Displays a message box with the specified title and message. The type
argument specifies the number and type of buttons used.
2.10.9.3.2 Arguments
The full
path to the
executable.
Type
Description
program
String
The full path to the executable.
argument
String
The command line argument string.
delay
Number,
optional
The number of milliseconds to wait until
the started application is waiting for user
input. If this argument isn’t specified, the
default wait time is 10000 ms.
2.10.9.3.3 Returns
The application handle. Note that this handle needs to be closed with
the method
closeAppHandle()
to avoid memory leaks.
If the application couldn’t be started, a runtime error occurs.
2.10.9.3.4 Constants
None.
2.10.9.3.5 Example