Download M9000 User`s Guide

Transcript
2.0 Getting Started
2.10.9
Application Launch
2.10.9.3
run(program, argument, delay)
2.10.9.1closeAppHandle(handle)
2.10.9.3.1Description
2.10.9.1.1Description
Displays a message box with the specified title and message. The type
argument specifies the number and type of buttons used.
Closes the application handle.
2.10.9.3.2Arguments
2.10.9.1.2Arguments
Argument
handle
Type
Number
The full
path to the
executable.
Description
The application handle.
2.10.9.1.3Returns
Nothing.
2.10.9.1.4Constants
Type
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.
None.
2.10.9.1.5Example
Description
2.10.9.3.3Returns
See the run() method.
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.4Constants
2.10.9.2isAppRunning(handle)
None.
2.10.9.2.1Description
2.10.9.3.5Example
Determines if an application is still running.
2.10.9.2.2Arguments
Argument
handle
Type
Number
Description
The application handle.
2.10.9.2.3Returns
Nothing.
2.10.9.2.4Constants
true if the application is still running, false otherwise.
2.10.9.2.5Example
See the run() method.
54