home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fonts Pro 2002
/
kf_2002.bin
/
compsrv
/
scripts.lib
/
DATEXJ.SCR
< prev
next >
Wrap
Text File
|
1995-12-05
|
2KB
|
79 lines
!
! Copyright (c) 1995
! 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.8.1"
!-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;