Casio Naurtech CETerm Ver.5.5 Scripting Guide Manuale Utente Pagina 104

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 164
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 103
NAURTECH WEB BROWSER AND TERMINAL EMULATION FOR WINDOWS CE AND WINDOWS MOBILE
CETerm Scripting Guide Page 104
function ExpectMonitor_Check()
{
// Clear timer id
this.timer = null;
// If something to check for, check it.
var target = this.args[this.state];
if (target != null)
{
// Get all screen text
var screenText =
CETerm.Session(this.session).Screen.GetText (1,1,-1,-1);
if (screenText != null && screenText.match( target ))
{
// Found match
var action = this.args[this.state + 1];
this.checkCount = 0;
if (action != null)
{
// Check action
if (typeof action == "function")
{
// Run function action
// Pass session number as argument
action( this.session );
}
else if (typeof action == "string")
{
// Send text to session
CETerm.SendText( action, this.session );
}
else if (!this.silent)
{
OS.Alert("Unknown action type for expect.");
}
}
// Check if another match expected
this.state +=2;
target = this.args[this.state];
if (target != null)
{
// Schedule next check
this.Schedule();
}
else
{
// Done with this expect.
Vedere la pagina 103
1 2 ... 99 100 101 102 103 104 105 106 107 108 109 ... 163 164

Commenti su questo manuale

Nessun commento