beautypg.com

Text = geterrormessage ( error ), Status = killprocess( processid ), Result = messagebox ( message, title, flags ) – Casio Naurtech CETerm Ver.5.5 Scripting Guide User Manual

Page 34: Playsound ( sound, flags ), Playtone ( volume, frequency, duration )

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 34


Use GetErrorMessage() to convert a non-zero status to a text message. You
should immediately save the property LastExecProcess after a successful Exec
call to obtain the process ID for later use in WaitForProcess or KillProcess.
The programFile should be a fully qualified filename. This function is
deprecated
. Full process control is now provided by the Process object.

text = GetErrorMessage ( error )

Return a descriptive text message for the specified Windows error. If the value is
unknown, return the error hexadecimal value as text.

status = KillProcess( processID )

Attempts to stop the specified process. Returns 0 for success, non-zero for
failure. You must obtain the processID from the property LastExecProcess
immediately after a successful Exec call. This function is deprecated. Full
process control is now provided by the Process object.

result = MessageBox ( message, title, flags )

Display a standard Windows message box. The title is displayed in the message
box title bar. The flags are used to specify the icon and buttons that are visible.
Return a value corresponding to the button pushed to close the dialog. See
Appendix 4 for flag definitions. Search msdn.microsoft.com with keywords
“messagebox ce” for more details.

PlaySound ( sound, flags )

Play a wave file on the device. This PlaySound is not the same as the
CETerm.PlaySound(). Use the complete absolute file path if the wave file is not
in the \Windows directory. The flags control the way the sound is played. See
Appendix 4 for flag definitions. Returns true on success, false otherwise. Search
msdn.microsoft.com with keywords “playsound ce” for more details.

PlayTone ( volume, frequency, duration )

Play a tone if supported by the handheld hardware. New applications should use
this method and avoid CETerm.Playtone().

volume

– is the volume 00 -10 (0 is off, 10 is loudest)

frequency

– is the frequency in Hz.

duration

– is the duration in milliseconds.

This manual is related to the following products: