Scripting Guide

NAURTECH WEB BROWSER AND TERMINAL EMULATION FOR WINDOWS CE AND WINDOWS MOBILE
CETerm Scripting Guide Page 60
// Switch between CETerm, Calculator, and Media Player.
ToggleApplications( /ceterm/i, /calc/i, "Media Player" );
The last step is to assign the hot-key to run Script #8. This can be placed in any
script slot. It may be marked “Load at Startup” or the key could be assigned as
part of other initialization scripts. For this example, Shift+Right_Arrow is the hot-
key combination.
// Assign hot-key
var vk_rightarrow = 0x27;
var modifier_shift = 0x4;
var k = Device.Keyboard;
var result = k.AssignHotKey( vk_rightarrow, modifier_shift,
"IDA_SCRIPT_8" );
if (result != 0)
{
OS.Alert( "AssignHotKey failed e=" + k.LastError );
}
3.10 THE MESSAGE OBJECT
The Message object provides feedback to the user while a script is running. The
Message object is a property of the CETerm object; CETerm.Message. This
object displays a dialog with a text message, an optional progress bar, and an
optional script cancellation button. The progress value can be set by the script
as tasks are completed, or it can run at a constant rate to show activity to the
user.
Methods
The Message object has no methods.
Properties
The Message object is controlled through read-write properties. Setting a
property will change the message dialog appearance.
Property
Description
Values