home *** CD-ROM | disk | FTP | other *** search
/ Curio City 9 / CURIO9.bin / pc / internet / win / w95nim / program / data.z / SFENICS4.SCR < prev    next >
Text File  |  1997-09-10  |  2KB  |  84 lines

  1. !
  2. !  Copyright (c) 1996
  3. !  by NIFTY Corporation, Tokyo, Japan
  4. !  by CompuServe Incorporated, Columbus, Ohio
  5. !
  6. !  The information in this software is subject to change without
  7. !  notice and should not be construed as a commitment by CompuServe.
  8. !
  9. !  FENICS-ROAD 4:
  10. !    Connect to FENICS-ROAD 4
  11. !    Success:  returns %Success
  12. !    Failure:  saves error msg in %FailureMsg and returns %Failure
  13. !
  14. !+V
  15. ! "3.5"
  16. !-V
  17. guide "FENICS-ROAD 4 に接続されました"; 
  18. Tries = 5;
  19. wait until 20;
  20.  
  21. Wait_HOST:
  22.     if Tries = 0 goto Return_Failure;
  23.     Tries = Tries - 1;
  24.  
  25.     wait
  26.         "*"        goto Send_NIF,
  27.         %mdm_Failure    goto Return_Failure
  28.     until 100;
  29. !    send %CR;
  30.     goto Wait_HOST;
  31.  
  32.  
  33. Send_NIF:
  34.     send "C NIF" & %CR;
  35.  
  36. Tries = 5;
  37. Wait_FENICS4:
  38.     if Tries = 0 goto Return_Failure;
  39.     Tries = Tries - 1;
  40.  
  41.     wait
  42.         "Enter Connection-ID"    goto Send_FENICS4_Host,
  43.         %mdm_Failure        goto Return_Failure
  44.     until 80;
  45.     goto Wait_FENICS4;
  46.  
  47. Send_FENICS4_Host:
  48.     wait until 10;
  49.     guide "サインアップを開始します";
  50.     send "PSG" & %CR; 
  51.  
  52. Tries = 5;
  53. Wait_ENQ:
  54.     if Tries = 0 goto Return_Failure;
  55.     Tries = Tries - 1;
  56.  
  57.     wait
  58.         %ENQ            goto Send_SIGNUP,
  59.         %NAK            goto Return_Failure
  60.         %mdm_Failure        goto Return_Failure
  61.     until 80;
  62.     goto Wait_ENQ;
  63.  
  64.  
  65. Send_SIGNUP:
  66.     wait until 10;
  67.     guide "登録データを送信しています";
  68.     signup : Result; 
  69.     guide "登録データの送信が終了しました";
  70.     if Result = %Success goto Return_Success;
  71.     if Result = %Cancel goto Return_Cancel;
  72.     
  73. Return_Failure:
  74.     define %FailureMsg = "FENICS-ROAD 4 が反応しません";
  75.     %ErrorCode = 2050;
  76.     exit %ErrorCode;
  77.  
  78. Return_Cancel:
  79.     exit %Cancel;
  80.  
  81. Return_Success:
  82.     wait until 10;
  83.     exit %Success;
  84.