User manual - Scripting_Guide

NAURTECH SMART CLIENTS FOR WINDOWS CE AND POCKET PC
CETerm Scripting Guide Page 21
case 1: IDA = "IDA_VT_PF1"; break;
case 2: IDA = "IDA_VT_PF2"; break;
case 3: IDA = "IDA_VT_PF3"; break;
case 4: IDA = "IDA_VT_PF4"; break;
}
// DEBUG: Uncomment next two lines for testing
//OS.Alert( "row=" + row + " col=" + column +
// " button=" + button + " IDA=" + IDA );
if (!IDA.match("IDA_NONE"))
{
// Send command
CETerm.PostIDA( IDA, session );
}
}
}
You may have noticed by now the use of PostIDA in some cases and SendIDA
in other cases. SendIDA is a synchronous activation of an action whereas
PostIDA is an asynchronous or deferred activation. In general it is always better
to use PostIDA unless you must wait for the action to complete before
proceeding in the script. The post action is similar to the “PostMessage” function
in Windows programming and the send is similar to the “SendMessage” function.
See the CETerm automation object for more details.