Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telepathy Communications Library - <b>tp_watch()</b> - set input watch http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   tp_watch() - set input watch

   nWatch := tp_watch(nPort, cString, [lIgnoreCase])

   nPort       Serial port number.
   cString     String to watch for.
   lIgnoreCase TRUE to ignore case.

   Returns     Watch handle or error code.

   Sets an input watch for cString.  If lIgnoreCase is TRUE, upper and
   lower case are ignored in matching the input.  Returns a watch handle
   which can be used with tp_iswatch() to check for matches.

   A total of 16 input watches can be set at one time.

   Example:

       nWatch := tp_watch(1, "*" + chr(24) + "B00")
           // Watches for *^XB00.

See Also: tp_getwatch() tp_iswatch() tp_watchoff() Input Watches

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson