My script below that i have compiled off the forums here is giving me some trouble. The script starts to run but when it gets to "ECHG" it doesnt enter "YES" likes its supposed to. It skips to "CDEN" then puts the "YES" in, and errors out Any help would be greatly appreciated!!
Thanks in advance
Ok heres my script:
Proc main
string tn
integer count
string szline
fopen 0 "tn.txt" read
while not feof 0
SZLINE = "2"
fgets 0 szline
strtok tn szline "," 1
set txpace 50
transmit "****^M"
transmit "ld 20^M"
waitfor "REQ: "
transmit "chg^M"
waitfor "TYPE: "
transmit "500^M"
waitfor "TN "
transmit tn
waitfor "ECHG "
mspause 50 (tried with and without this pause)
transmit "YES^M"
mspause 50 (tried with and without this pause)
waitfor "ITEM "
transmit "cls cnia ^M"
waitfor "ITEM "
transmit "^M"
endwhile
fclose 0
endproc
Thanks in advance
Ok heres my script:
Proc main
string tn
integer count
string szline
fopen 0 "tn.txt" read
while not feof 0
SZLINE = "2"
fgets 0 szline
strtok tn szline "," 1
set txpace 50
transmit "****^M"
transmit "ld 20^M"
waitfor "REQ: "
transmit "chg^M"
waitfor "TYPE: "
transmit "500^M"
waitfor "TN "
transmit tn
waitfor "ECHG "
mspause 50 (tried with and without this pause)
transmit "YES^M"
mspause 50 (tried with and without this pause)
waitfor "ITEM "
transmit "cls cnia ^M"
waitfor "ITEM "
transmit "^M"
endwhile
fclose 0
endproc