9 the keyboard object, Methods – Casio Naurtech CETerm Ver.5.5 Scripting Guide User Manual

Page 55

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 55



// Assign initial listener script for GPS position event
s = e.SetListener( ep, "UpdateGPSPosition();", 300000 );

// Assign event to GPS object
g.NewLocationDataEvent = ep;
g.MaximumAge = 5000;

// Open GPS device
s = g.Open();

// Prepare message display
m.AbortButtonVisible = false;
m.Title = "GPS Demo";
m.Text = "Initializing, please wait...";
m.IsVisible = true;

// Create global hot-key to run Script 50 for cleanup
k.AssignHotKey( VK_RETURN, 0, "IDA_SCRIPT_50" );

// Put cleanup script invocation into slot 50
CETerm.SetProperty( "app.script.50", "CleanupGPS()" );
}

// Invoke GPSDemo function to start demo
GPSDemo();

3.9

T

HE

K

EYBOARD

O

BJECT

The Keyboard object provides access to keyboard operations. The Keyboard
object is a property of the Device object; Device.Keyboard. The Keyboard
object can be used to simulate hardware keyboard actions to other applications
or to CETerm if required. Simulated key events should not be used if CETerm
Action codes can achieve the same result.

The Keyboard obj

ect can also create global “hot-keys” which can be used to

activate CETerm actions or scripts. Global hot-keys are recognized regardless of
which program is active and in the foreground. Global hot-keys can be an
important feature when using CETerm as a lock-down shell and program
launcher.

Methods

The following methods are available

Advertising
This manual is related to the following products: