home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Gallery 1995 December
/
MG_1295.ISO
/
pcdirekt
/
kommunik
/
cserve
/
cimos2
/
scripts.lib
/
INTERNET.SCR
< prev
next >
Wrap
Text File
|
1994-05-17
|
1KB
|
65 lines
!
! Copyright (c) 1993
! 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.
!
! Internet:
! Success: returns %Success
! Failure: saves error msg in %FailureMsg and returns %Failure
!
!+V
! "3.5"
!-V
Tries = 5;
on cancel goto Return_Cancel;
show "Connecting to Internet";
Wait_Time = 20;
Wait_Host_Name:
if Tries = 0 goto Internet_Failure;
Tries = Tries - 1;
wait
"Host Name" goto Send_Host_Name
until Wait_Time;
send "^M";
Wait_Time = 200;
goto Wait_Host_Name;
Wait_Internet:
if Tries = 0 goto Internet_Failure;
Tries = Tries - 1;
wait
"Host Name" goto Send_Host_Name,
"User ID" goto Return_User_ID,
"OFF):" goto Send_Baud_Rate
until 200;
send "^M";
goto Wait_Internet;
Send_Host_Name:
send "CISAGREE^M";
goto Wait_Internet;
Send_Baud_Rate:
send %BaudRate;
send "^M";
goto Return_Success;
Internet_Failure:
define %FailureMsg = "Internet not responding";
exit %Failure;
Return_Cancel:
exit %Cancel;
Return_User_ID:
send %CR;
wait until 10;
Return_Success:
exit %Success;