Casio Naurtech CETerm Ver.5.5 Scripting Guide User Manual

Page 105

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 105


// Run any post-execution actions
if (typeof this.OnDone == "function")
{
this.OnDone( true );
}
}
}
else
{
// No match, schedule again
if (this.checkCount++ < this.maxCheckCount)
{
this.Schedule();
}
else
{
if (!this.silent)
{
OS.Alert( "Expect failed to find text \"" +
target + "\"" );
}
if (typeof this.OnDone == "function")
{
// Done but failed
this.OnDone( false );
}
}
}
}
}


function ExpectMonitor_Schedule()
{
// Schedule next check
var script = "ExpectMonitor.Instances[" +
this.session + "].Check()";
this.timer = CETerm.SetTimeout( script, this.checkDelta );
}


function ExpectMonitor_Start()
{
// Cleanup first in case restarted
this.Abort();

// Initialize state
this.state = 0;
this.checkCount = 0;

this.Check();
}

Advertising
This manual is related to the following products: