12 the process object, Methods, Status = executeaction ( file, arguments, verb ) – Casio Naurtech CETerm Ver.5.5 Scripting Guide User Manual

Page 63: Processlist = getlist ( ), Method action

Advertising
background image

N

AURTECH

W

EB

B

ROWSER AND

T

ERMINAL

E

MULATION FOR

W

INDOWS

CE

AND

W

INDOWS

M

OBILE




CETerm Scripting Guide

Page 63


3.12

T

HE

P

ROCESS

O

BJECT

The Process object provides access to running Windows processes. Processes
can be started, killed, and listed. The Process object is a property of the OS
object; OS.Process.

Methods

The following methods are available

Method

Action

ExecuteAction

Run a program or open a file via the specified action.

GetList

Get a list of the running processes

Kill

Stop (Kill) a running process.

WaitForExit

Wait for a running process to exit.

status = ExecuteAction ( file, arguments, verb )

Run a program using the specified action verb. The file specifies either an
executable program that will be run or a general document file that will be
processed according to the specified verb. The arguments are specified as a
text string and are passed to the program that is run. Arguments are separated
by spaces. Use quotes if an argument contains spaces. If you want to include
double quotation marks as part of an argument, these must be enclosed by two
sets of double quotation marks. For example the argument string

var args = 'first "arg with spaces" """quotes part of arg""" last';


specifies 4 arguments: first, arg with spaces, "quotes part of arg",
and last.

Normally, the verb is “open” for executable files, but it may be “edit” or “print” to
invoke those actions on a document file. Return 0 on success or non-zero
otherwise. Use the Process property LastError to get additional error
information. Use the property LastExecuteProcess to get the process ID of the
last process started.

processList = GetList ( )

Return a list of currently running processes. The returned list is in the form of a
JavaScript array literal [ …] which contains JavaScript object literals {…}

Advertising
This manual is related to the following products: