I am having problem with retrieving multiple files from a BBS. The first retrieval works just fine, but the second one times out. Below is the code I am using. I am using a variation of the code that was posted here to look for strings that appear on the screen in order to know what to do next. Any help would be very much appreciated.
Code Example:
sTMPSTR1 = "Start your local YMODEM receive now"
sTMPSTR2 = $NULLSTR
sTMPSTR3 = $NULLSTR
accSTRWAIT (30, sTMPSTR1, sTMPSTR2, sTMPSTR3)
switch iWAITSTAT
case 1
getfile 5
while $XFERSTATUS == 1
yield
endwhile
endcase
default
accERROR (7)
endcase
endswitch
accMENU ("AECN: SENDING REPORT/MAIL", "GOTREPORT", 30, 7)
statmsg "Ready to Retrieve Activity Report"
sTMPSTR1 = "Start your local YMODEM receive now"
sTMPSTR2 = $NULLSTR
sTMPSTR3 = $NULLSTR
accSTRWAIT (30, sTMPSTR1, sTMPSTR2, sTMPSTR3)
$XFERSTATUS = 1
switch iWAITSTAT
case 1
getfile 5
while $XFERSTATUS == 1
yield
endwhile
endcase
default
accERROR (7)
endcase
endswitch
Code Example:
sTMPSTR1 = "Start your local YMODEM receive now"
sTMPSTR2 = $NULLSTR
sTMPSTR3 = $NULLSTR
accSTRWAIT (30, sTMPSTR1, sTMPSTR2, sTMPSTR3)
switch iWAITSTAT
case 1
getfile 5
while $XFERSTATUS == 1
yield
endwhile
endcase
default
accERROR (7)
endcase
endswitch
accMENU ("AECN: SENDING REPORT/MAIL", "GOTREPORT", 30, 7)
statmsg "Ready to Retrieve Activity Report"
sTMPSTR1 = "Start your local YMODEM receive now"
sTMPSTR2 = $NULLSTR
sTMPSTR3 = $NULLSTR
accSTRWAIT (30, sTMPSTR1, sTMPSTR2, sTMPSTR3)
$XFERSTATUS = 1
switch iWAITSTAT
case 1
getfile 5
while $XFERSTATUS == 1
yield
endwhile
endcase
default
accERROR (7)
endcase
endswitch