home *** CD-ROM | disk | FTP | other *** search
/ PC Direkt 1995 #3 / PCD_395.iso / kommunik / wincim_d / disk1 / scripts.lib / CHILEPAC.SCR next >
Encoding:
Text File  |  1994-04-14  |  1.1 KB  |  67 lines

  1. !
  2. !  Copyright (c) 1993
  3. !  by CompuServe Incorporated, Columbus, Ohio
  4. !
  5. !  The information in this software is subject to change without
  6. !  notice and should not be construed as a commitment by CompuServe.
  7. !
  8. !  Chilepac:
  9. !       Connect to Chilepac
  10. !       Success:  returns %Success
  11. !       Failure:  saves error msg in %FailureMsg and returns %Failure
  12. !
  13. !+V
  14. ! "3.4.1"
  15. !-V
  16.  
  17. show "Verbindungsaufbau mit Chilepac";
  18.  
  19. Tries = 5;
  20. on cancel goto Return_Cancel;
  21. wait until 50;
  22. send %CR & %CR;
  23.  
  24. Wait_Chilepac:
  25.  
  26.     if Tries = 0 goto Chilepac_Failure;
  27.     Tries = Tries - 1;
  28.  
  29.     wait
  30.         "@"             goto Send_CSERVE,
  31.         %mdm_Failure    goto Chilepac_Failure,
  32.           "Host Name:"    goto Return_Success,
  33.         "User ID:"    goto Return_Success
  34.     until 80;
  35.  
  36.     send %CR & %CR;
  37.     goto Wait_Chilepac;
  38.  
  39. Send_CSERVE:
  40.     wait until 5;
  41.     show "Chilepac-Kennung wird ⁿbertragen...";
  42.     send "CSERVE" & %CR;
  43.     goto Wait_Chilepac;
  44.  
  45. Chilepac_Failure:
  46.     define %FailureMsg = "Chilepac antwortet nicht";
  47.     exit %Failure;
  48.  
  49. Return_Cancel:
  50.     exit %Cancel;
  51.  
  52. Return_Success:
  53.     send %CR;
  54.     exit %Success;
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.