User manual - Scripting_Guide

NAURTECH SMART CLIENTS FOR WINDOWS CE AND POCKET PC
CETerm Scripting Guide Page 33
PlaySound( sound, flags )
Play a wave file on the device. This PlaySound is not the same as the
CETerm.PlaySound(). Use the complete 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.
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.
Sleep( delay )
Delay script execution for specified milliseconds.
result = StopSound( )
Stop any currently playing sound. Returns 0 on success.
status = WaitForProcess( processID, timeout )
Wait for the specified process to exit. Return after timeout milliseconds even if
process is still running. Return 0 if process has exited, non-zero for timeout or
failure. You must obtain the processID from the property LastExecProcess
immediately after a successful Exec call.
Properties
The OS object has the following properties.
Property Description Values
File Returns the File object. This object
provides access to the Windows file
systems. (read only)
object