
NAURTECH WEB BROWSER AND TERMINAL EMULATION FOR WINDOWS CE AND WINDOWS MOBILE
CETerm Scripting Guide Page 53
Event ID of event signaled when GPS
device state changes. If needed, you
must set this value before calling
Open(). The eventID must be obtained
by calling OS.Event.Create()
Include satellite data with position
results if true. Default is false.
Indicates GPS device is open and
enabled. (read only)
Returns the last error value associated
with the GPS object.
Return last position data obtained by
GetPosition.
Maximum age in milliseconds of position
results returned by GetPosition. Default
value is 180000.
Event ID of event signaled when GPS
position changes. If needed, you must
set this value before calling Open(). The
eventID must be obtained by calling
OS.Event.Create().
Example
The following example shows how the GPS device can be monitored and the
current location displayed. This example also uses the OS.Event methods, a
global hot-key, and CETerm.Message. The event is signaled by the GPS device
and used to update the display. The hot-key is used to terminate the demo. To
run this demo, simply load the full script into an available script slot and tap
“Test/Load”.
// GPS Demo Script
// WARNING: This demo overwrites the contents of Script 50.
// WARNING: This demo does not contain any error checking and
// WARNING: may not work on all devices.
// Constants
var VK_RETURN = 0x0D; // Enter key
// Function to update position display when position
// event is signaled.
function UpdateGPSPosition()
{
Commenti su questo manuale