home *** CD-ROM | disk | FTP | other *** search
/ Curio City 9 / CURIO9.bin / pc / internet / win / w95nim / program / data.z / SINSC.SCR < prev    next >
Text File  |  1997-09-10  |  2KB  |  83 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 3 INS-C:
  10. !    Connect to FENICS-ROAD 3 INS-C
  11. !    Success:  returns %Success
  12. !    Failure:  saves error msg in %FailureMsg and returns %Failure
  13. !
  14. !+V
  15. ! "3.5"
  16. !-V
  17. guide "INS-C に接続されました"; 
  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.     goto Wait_HOST;
  30.  
  31.  
  32. Send_NIF:
  33.     send "C NIF" & %CR;
  34.  
  35. Tries = 5;
  36. Wait_FENICS3:
  37.     if Tries = 0 goto Return_Failure;
  38.     Tries = Tries - 1;
  39.  
  40.     wait
  41.         "Enter Connection-ID"    goto Send_FENICS3_Host,
  42.         %mdm_Failure        goto Return_Failure
  43.     until 80;
  44.     goto Wait_FENICS3;
  45.  
  46. Send_FENICS3_Host:
  47.     wait until 10;
  48.     guide "サインアップを開始します";
  49.     send "PSG" & %CR; 
  50.  
  51. Tries = 5;
  52. Wait_ENQ:
  53.     if Tries = 0 goto Return_Failure;
  54.     Tries = Tries - 1;
  55.  
  56.     wait
  57.         %ENQ            goto Send_SIGNUP,
  58.         %NAK            goto Return_Failure
  59.         %mdm_Failure        goto Return_Failure
  60.     until 80;
  61.     goto Wait_ENQ;
  62.  
  63.  
  64. Send_SIGNUP:
  65.     wait until 10;
  66.     guide "登録データを送信しています";
  67.     signup : Result; 
  68.     guide "登録データの送信が終了しました";
  69.     if Result = %Success goto Return_Success;
  70.     if Result = %Cancel goto Return_Cancel;
  71.     
  72. Return_Failure:
  73.     define %FailureMsg = "FENICS-ROAD 3 が反応しません";
  74.     %ErrorCode = 2050;
  75.     exit %ErrorCode;
  76.  
  77. Return_Cancel:
  78.     exit %Cancel;
  79.  
  80. Return_Success:
  81.     wait until 10;
  82.     exit %Success;
  83.