home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Life: Multimedia Mega Pac
/
Multimedia_Mega-Pac_Computer_Life_1996.iso
/
sprypcm
/
scripts.lib
/
DATEXJ.SCR
< prev
next >
Wrap
Text File
|
1994-12-29
|
2KB
|
79 lines
!
! Copyright (c) 1994
! 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.
!
! Datex-J (BTX):
! Success: returns %Success
! Failure: saves error msg in %FailureMsg and returns %Failure
!
!+V
! "3.5.2"
!-V
Tries = 5;
count = 0;
Second_Time = %FALSE;
on cancel goto Return_Cancel;
show "Connecting to Datex-J";
Wait_DatexJ:
if Tries = 0 goto DatexJ_Failure;
Tries = Tries - 1;
wait
"^@" goto Send_Response,
"^E" goto Send_Response,
"kennung" goto Send_Kennung,
%mdm_Failure goto DatexJ_Failure
until 200;
goto Wait_DatexJ;
Send_Response:
send "." & %CR;
Send_Kennung:
wait until 100;
send "000255975978";
show "Sending Datex-J User ID";
Send_CR:
count = 0;
wait
"DM" goto Send_Pound,
"Host Name:" goto Match_Host_Name
until 300;
if Second_Time = %TRUE goto DatexJ_Failure;
Send_Pound:
wait
%mdm_Failure goto DatexJ_Failure,
"User ID:" goto Match_Host_Name,
"Host Name:" goto Match_Host_Name
until 10;
send %CR;
count = count + 1;
if count < 3 goto Send_Pound;
Second_Time = %TRUE;
goto Send_CR;
DatexJ_Failure:
define %FailureMsg = "Datex-J not responding";
exit %Failure;
Return_Cancel:
exit %Cancel;
Match_Host_Name:
wait
"Host Name:" goto Match_Host_Name
until 10;
Return_Success:
send %CR;
wait until 10;
exit %Success;