home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
n
/
newscr.zip
/
NEWSCR.EXE
/
TELEPAC.SCR
< prev
next >
Wrap
Text File
|
1993-01-04
|
2KB
|
57 lines
!---------------------------------------------------------------------!
! !
! Copyright (c) 1991 !
! 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. !
! !
! TELEPAC Script: !
! Connect to Telepac !
! Success: returns %Success !
! Failure: saves error msg in %FailureMsg and returns %Failure !
! !
! $Revision:: 1.5 $ !
! !
!---------------------------------------------------------------------!
show "Connecting to TELEPAC";
Tries = 5;
HostSent = %FALSE;
on cancel goto Return_Cancel;
Wait_Telepac:
if Tries = 0 goto Telepac_Failure;
Tries = Tries - 1;
wait
"Telepac: " goto Send_Telepac_Host,
"User ID:" goto Return_Success,
"Host Name:" goto Return_Success
until 30;
send "." & %CR;
HostSent = %FALSE;
goto Wait_Telepac;
Send_Telepac_Host:
if HostSent goto Wait_Telepac;
wait until 5;
send "R 47911303" & %CR;
wait until 10;
HostSent = %TRUE;
goto Wait_Telepac;
Telepac_Failure:
define %FailureMsg = "TELEPAC not responding";
exit %Failure;
Return_Cancel:
exit %Cancel;
Return_Success:
exit %Success;