Casio Naurtech CETerm Ver.5.5 Scripting Guide User Manual
Page 101

N
AURTECH
W
EB
B
ROWSER AND
T
ERMINAL
E
MULATION FOR
W
INDOWS
CE
AND
W
INDOWS
M
OBILE
CETerm Scripting Guide
Page 101
if (rfStatus > 0)
{
// RF detected
// Delayed playsound, increase delay for WEP if needed
CETerm.SetTimeout( "RFWakeupSoundPlay();", 100 );
RFWakeupSoundContinue = 0;
}
else if (RFWakeupSoundCount > RFWakeupSoundCountMaximum)
{
// Failed to get RF, show failure message.
OS.Alert( "Failed to detect RF signal.\n" +
"Return to coverage area." );
RFWakeupSoundContinue = 0;
}
if (RFWakeupSoundContinue)
{
if (!(RFWakeupSoundCount % 5))
{
// Play "tick" sound while check is running.
CETerm.PlaySound( "MenuPop" );
}
// Schedule next RF check
RFWakeupSoundTimerID = CETerm.SetTimeout(
"RFWakeupSoundOnTimer();",
RFWakeupSoundInterval );
}
}
function RFWakeupSoundPlay()
{
// Select any wave file on device for notification.
CETerm.PlaySound( "infbeg" );
}