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
/
TYMNET.SCR
< prev
Wrap
Text File
|
1991-10-16
|
2KB
|
67 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. !
! !
! TYMNET Purpose: !
! Connect to Tymnet !
! Success: returns %Success !
! Failure: saves error msg in %FailureMsg and returns %Failure !
! !
! $Revision:: 1.3 $ !
! !
!---------------------------------------------------------------------!
A_Sent = %FALSE;
CR_Sent = %FALSE;
show "Connecting to TYMNET";
on cancel goto Return_Cancel;
Wait_Tymnet:
wait
"Please " goto Send_A,
"xxx" goto Send_A,
"log in:" goto Send_Tymnet_Host,
"User Name" goto Send_Tymnet_Host,
"HOST:" goto Return_Success,
"User ID:" goto Return_Success
until 85;
if not CR_Sent goto Send_CR;
if not A_Sent goto Send_A;
goto Tymnet_Failure;
Send_CR:
send %CR & %CR;
CR_Sent = %TRUE;
goto Wait_Tymnet;
Send_A:
if A_Sent goto Wait_Tymnet;
send "A";
A_Sent = %TRUE;
goto Wait_Tymnet;
Send_Tymnet_Host:
send "CPS" & %CR;
goto Wait_Tymnet;
Tymnet_Failure:
define %FailureMsg = "Tymnet: no answer";
exit %Failure;
Return_Cancel:
exit %Cancel;
Return_Success:
exit %Success;