home *** CD-ROM | disk | FTP | other *** search
/ Computerworld 1996 March / Computerworld_1996-03_cd.bin / idg_cd3 / aplikace / komunika / telixwin / tfw.5 / AUTOCHAT.SLT next >
Text File  |  1995-07-28  |  1KB  |  29 lines

  1. /****************************************************************/
  2. /*                                                              */
  3. /* Demo of how chat mode can be automated when calling WINHOST. */
  4. /*                                                              */
  5. /*                   Copyright 1995 deltaComm Development, Inc. */
  6. /*                                                              */
  7. /****************************************************************/
  8.  
  9. autochat()
  10. {
  11.  int tr;
  12.  
  13.  tr=track("Sysop breaking in for a chat", 1); // Track string sent by host mode
  14.  
  15.  while (carrier())                            // Keep going as long as on-line
  16.   {
  17.    terminal();                                // Allow normal terminal activity
  18.  
  19.    if (track_hit(tr))
  20.      chatmode();                              // Initiate chatmode if the
  21.   }                                           // sysop's chat string detected
  22.  track_free(tr);                              // Release tracking for other use
  23. }
  24.  
  25. main()
  26. {
  27.  autochat();
  28. }
  29.