home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 January / CHIPCD1_98.iso / software / tipsy / zoc / install.fil / SCRIPT / RXSAMPLE / TUTORIAL / 5_REPLY.ZRX < prev    next >
Text File  |  1996-08-26  |  1KB  |  41 lines

  1. /*******************************************************
  2. ** AUTORESPONSE
  3. ********************************************************
  4. ** 
  5. ** with the ZocRespond function you may setup automatic
  6. ** responses for incoming data. These responses are 
  7. ** checked within a ZocDelay or ZocWait command.
  8. ** 
  9. ** There is a limitation of 16 responses, each having
  10. ** 80 characters max.
  11. ** 
  12. ** This is a example of how to login to a bbs and skip
  13. ** across the initial news (assumed that they have
  14. ** a "- press enter to continue -" prompt).
  15. ** 
  16. ** However, this is not the typical way to do a login;
  17. ** it is merely a sample to show the use of ZocRespond.
  18. ** 
  19. */
  20.  
  21.  
  22. /* Setup a few replies for the login and form the info blurp */
  23. CALL ZocRespond "Name", "ZOC^M"
  24. CALL ZocRespond "Password", "SECRET^M"
  25. CALL ZocRespond " continue -", "^M"
  26.  
  27. /* Dial in (no error busy etc. checking) */
  28. CALL ZocDial "1234567"
  29.  
  30. /* wait until main menu and leave the work to the responses */
  31. CALL ZocTimeout 3600
  32. CALL ZocWait "MAIN MENU>"
  33.  
  34. /* now that we are logged in, clear the responses */
  35. CALL ZocRespond "Name"
  36. CALL ZocRespond "Password"
  37. CALL ZocRespond " continue -"
  38.  
  39. EXIT
  40.  
  41.