home *** CD-ROM | disk | FTP | other *** search
/ Computer Buyer 1996 May / buyer-0596.iso / wincim / scripts.lib / POSSERVE.SCR < prev    next >
Text File  |  1995-12-05  |  965b  |  51 lines

  1. !
  2. !  Copyright (c) 1995
  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. !  Pos-Serve:
  9. !    Connect to Pos-Serve
  10. !    Success:  returns %Success
  11. !    Failure:  saves error msg in %FailureMsg and returns %Failure
  12. !
  13. !+V
  14. ! "3.8.1"
  15. !-V
  16.  
  17. show "Connecting to Pos-Serve LL";
  18.  
  19. Tries = 5;
  20. on cancel goto Return_Cancel;
  21.  
  22. Wait_PosServe:
  23.  
  24.     if Tries = 0 goto PosServe_Failure;
  25.     Tries = Tries - 1;
  26.  
  27.      wait
  28.         "@"        goto Send_CNS,
  29.         %mdm_Failure    goto PosServe_Failure,
  30.         "CONNECTED"    goto Return_Success
  31.     until 80;
  32.  
  33.     send %CR;
  34.     goto Wait_PosServe;
  35.  
  36. Send_CNS:
  37.     wait until 5;
  38.     show "Sending Pos-Serve LL address...";
  39.     send "cns" & %CR;
  40.     goto Wait_PosServe;
  41.  
  42. PosServe_Failure:
  43.     define %FailureMsg = "Pos-Serve LL not responding";
  44.     exit %Failure;
  45.  
  46. Return_Cancel:
  47.     exit %Cancel;
  48.  
  49. Return_Success:
  50.     exit %Success;
  51.