Scripting Guide

NAURTECH WEB BROWSER AND TERMINAL EMULATION FOR WINDOWS CE AND WINDOWS MOBILE
CETerm Scripting Guide Page 27
but it will also accept a “tone specifier” as a string to support this legacy feature in
the Naurtech Web Browser. New application should use the OS.PlaySound or
OS.PlayTone commands. Use the complete file path if the wave file is not in the
\Windows directory.
If the handheld device contains a programmable tone generator, the sound
parameter may also be a string which defines a sequence of tones to play. The
syntax is given below:
“vvfffddd” – where
vv is the volume 01-10
fff is the frequency in 10‟s of MHz, 000-999
ddd is the duration in 10‟s of milliseconds, 000-999
Multiple tone specifications can be concatenated.
PlayTone( volume, frequency, duration ) (deprecated)
Play a tone if supported by the handheld hardware. This method is provided for
backward compatibility within the web browser. New application should use
OS.Playtone() which provides the same functionality.
volume is the volume 00 -10 (0 is off, 10 is loudest)
frequency is the frequency in Hz.
duration is the duration in milliseconds.
PostIDA ( IDASymbolicName, session )
PostIDA submits an IDA action command and directs it to the specified session.
Valid session values are 1 to MaxSession. The special session value of 0 will
send the command to the current session. Some IDA commands act at a global
level and ignore the session variable. See Appendix 1 for IDA Symbolic Names.
The PostIDA command will return before the action executes. In general, the
IDA action will not be applied until after the current script execution ends. We
recommend using PostIDA rather than SendIDA. There are only rare situations
when SendIDA must be used.
status = RunScript ( script )
Run the specified script in the CETerm engine. This method must only be used
when the CETerm object is referenced from the web browser script engine. In
general, it is better to use PostIDA with an IDA_SCRIPT_xx action to run a pre-