home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fonts Pro 2002
/
kf_2002.bin
/
compsrv
/
scripts.lib
/
LATA.SCR
< prev
next >
Wrap
Text File
|
1995-12-05
|
1KB
|
63 lines
!
! Copyright (c) 1995
! by CompuServe Incorporated, Columbus, Ohio
!
! The information in this software is subject to change without
! notice and should not be construed as a commitment by CompuServe.
!
! LATA:
! Connect to LATA
! Success: returns %Success
! Failure: saves error msg in %FailureMsg and returns %Failure
! Arg1 = False if Network setting is LATA-Ct, True if LATA
!
!+V
! "3.8.1"
!-V
show "Connecting to LATA";
Tries = 5;
on cancel goto Return_Cancel;
Response_Char = ".";
if Arg1 = %TRUE goto Send_Response;
Response_Char = "H"; ! Ct. LATA selected
Send_Response:
if Tries = 0 goto LATA_Failure;
Tries = Tries - 1;
wait until 5;
send Response_Char;
wait until 2;
send Response_Char;
wait until 2;
send Response_Char;
wait until 2;
send %CR;
Wait_LATA:
wait
"*" goto Send_LATA_Host,
"COM^M" goto Return_Success,
"Err" goto Send_LATA_Host,
%mdm_Failure goto LATA_Failure
until 70;
goto Send_Response;
Send_LATA_Host:
send ".CPS" & %CR;
goto Wait_LATA;
LATA_Failure:
define %FailureMsg = "LATA not responding";
exit %Failure;
Return_Cancel:
exit %Cancel;
Return_Success:
exit %Success;