home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
3,500 Cliparts Vectoriels 2
/
3500_V2.iso
/
compu
/
csi302f
/
scripts.lib
/
infonet.scr
< prev
next >
Wrap
Text File
|
1997-01-30
|
3KB
|
126 lines
!
! Copyright (c) 1996
! 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.
!
! InfoNet:
! Connect to InfoNet or InfoNet-Europe. Arg1 contains TRUE if
! connect is to InfoNet-Europe and FALSE otherwise.
! Success: returns %Success
! Failure: saves error msg in %FailureMsg and returns %Failure
! Arg1: 0 - InfoNet World, 1 - InfoNet Europe, 2 - Infonet Korea,
! 3 - InfoNet Taiwan, 4 - InfoNet Mexico, 5 - InfoNet S. Africa
!+V
! "3.8.3F"
!-V
Which_InfoNet = Arg1;
if Which_InfoNet = 1 goto Init_Europe;
if Which_InfoNet = 2 goto Init_Korea;
if Which_InfoNet = 3 goto Init_Taiwan;
if Which_InfoNet = 4 goto Init_Mexico;
if Which_InfoNet = 5 goto Init_SAfrica;
show "Connexion α InfoNet World";
FailStr = "InfoNet World ne rΘpond pas";
FailStr2 = "InfoNet World ne rΘpond pas";
goto Init_Common;
Init_Europe:
show "Connexion α InfoNet Euro ";
FailStr = "InfoNet Euro ne rΘpond pas";
FailStr2 = "InfoNet Euro ne rΘpond pas";
goto Init_Common;
Init_Korea:
show "Connexion α InfoNet Korea";
FailStr = "InfoNet Korea ne rΘpond pas";
FailStr2 = "InfoNet Korea ne rΘpond pas";
goto Init_Common;
Init_Taiwan:
show "Connexion α InfoNet Taiwan";
FailStr = "InfoNet Taiwan ne rΘpond pas";
FailStr2 = "InfoNet Taiwan ne rΘpond pas";
goto Init_Common;
Init_Mexico:
show "Connexion α InfoNet Mexico";
FailStr = "InfoNet Mexico ne rΘpond pas";
FailStr2 = "InfoNet Mexico ne rΘpond pas";
goto Init_Common;
Init_SAfrica:
show "Connexion α InfoNet South Africa";
FailStr = "InfoNet South Africa ne rΘpond pas";
FailStr2 = "InfoNet South Africa ne rΘpond pas";
! fall through
Init_Common:
Tries = 5;
Timeout = 10;
Got_Center = %FALSE;
on cancel goto Return_Cancel;
Wait_InfoNet:
wait
%mdm_Failure goto NO_Carrier,
"CLR ERR" goto InfoNet_Failure,
"#" goto Send_Response,
"Center" goto Send_InfoNet_Host,
"Centre" goto Send_InfoNet_Host,
"COMMUNICATION" goto Return_Success
until Timeout;
Timeout = 50;
if Tries = 0 goto InfoNet_Failure;
Tries = Tries - 1;
send %CR & %CR & %CR;
goto Wait_InfoNet;
Send_Response:
if Got_Center goto Wait_InfoNet;
send "C" & %CR;
Timeout = 195;
goto Wait_InfoNet;
Send_InfoNet_Host:
show "Envoi de l'adresse CompuServe en cours...";
if Which_InfoNet = 0 goto Send_InfoNet_World_Host;
if Which_InfoNet = 1 goto Send_InfoNet_Europe_Host;
send "CPS" & %CR;
goto Finish_Send_Host;
Send_InfoNet_World_Host:
send "CSI" & %CR;
goto Finish_Send_Host;
Send_InfoNet_Europe_Host:
send "CSF" & %CR;
goto Finish_Send_Host;
Finish_Send_Host:
FailStr = FailStr2;
if Tries = 0 goto InfoNet_Failure;
Tries = Tries - 1;
Got_Center = %TRUE;
Timeout = 835;
goto Wait_InfoNet;
NO_Carrier:
FailStr = "Perte de connexion du modem";
InfoNet_Failure:
define %FailureMsg = FailStr;
exit %Failure;
Return_Cancel:
exit %Cancel;
Return_Success:
exit %Success;