home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PowerPlay 1998 July
/
PowerPlay0798.bin
/
Online
/
WINCIMIE
/
SCRIPTS.LIB
/
INFONET.SCR
< prev
next >
Wrap
Text File
|
1997-05-08
|
3KB
|
126 lines
!
! Copyright (c) 1997
! 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
! "4.0.1"
!-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 "Verbindungsaufbau mit dem InfoNet-World";
FailStr = "InfoNet-World antwortet nicht";
FailStr2 = "InfoNet-World antwortet nicht";
goto Init_Common;
Init_Europe:
show "Verbindungsaufbau mit dem InfoNet-Euro";
FailStr = "InfoNet-Euro antwortet nicht";
FailStr2 = "InfoNet-Euro antwortet nicht";
goto Init_Common;
Init_Korea:
show "Verbindungsaufbau mit dem InfoNet-Korea";
FailStr = "InfoNet-Korea antwortet nicht";
FailStr2 = "InfoNet-Korea antwortet nicht";
goto Init_Common;
Init_Taiwan:
show "Verbindungsaufbau mit dem InfoNet-Taiwan";
FailStr = "InfoNet-Taiwan antwortet nicht";
FailStr2 = "InfoNet-Taiwan antwortet nicht";
goto Init_Common;
Init_Mexico:
show "Verbindungsaufbau mit dem InfoNet-Mexico";
FailStr = "InfoNet-Mexico antwortet nicht";
FailStr2 = "InfoNet-Mexico antwortet nicht";
goto Init_Common;
Init_SAfrica:
show "Verbindungsaufbau mit dem InfoNet-South Africa";
FailStr = "InfoNet-South Africa antwortet nicht";
FailStr2 = "InfoNet-South Africa antwortet nicht";
! 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 "CompuServe-Adresse wird ⁿbertragen...";
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 = "Modemverbindung wurde abgebrochen";
InfoNet_Failure:
define %FailureMsg = FailStr;
exit %Failure;
Return_Cancel:
exit %Cancel;
Return_Success:
exit %Success;