Example: TE_type
The following segment sends an amount to be deposited and waits for the client application to respond.
/* Declare variables for TE_wait_text */
int ret_row;
int ret_col;
char ret_text [80];
lr_start_transaction (command);
/* send amount */
TE_type ("{deposit_amount}<kReturn>");
/* Wait for response */
TE_wait_text ("!Operation failed|Withdraw", 30, 1, 1, 0, 0, NULL, NULL, match);
if (TE_errno != TE_SUCCESS) {
lr_end_transaction (command, LR_FAIL);
lr_error_message ("TE_wait_text failed \n);
return:
}
else {
lr_end_transaction (command, LR_SUCCESS);
}