TTnScript

From Overbyte
Revision as of 10:13, 30 December 2015 by Stevia (talk | contribs) (→‎Properties)
Jump to navigation Jump to search

Overview

  • unit OverbyteIcsTnScript.pas
  • inheritance TTnEmulVT - TComponent

The TTnScript is a descendant of TTnEmulVT that encapsulates searching through received data for a search strings, automatically replying a given string (optional) and triggering an event handler (optional) when a search string is encountered. It links into TTnEmulVT via the TriggerDataAvailable virtual method to get data received and if it has search strings to test for, calls processinputdata.

Properties

InputBufferSize Size of buffer to use for internal scanning, must be twice as long as longest search string.
OnDisplay When a search string is found, this event handler is triggered. Parameter is displayable text string.
OnStringMatch When a search string is found, this event handler is triggered. Parameter is ID of search string.

Methods