Difference between revisions of "TTnScript"

From Overbyte
Jump to navigation Jump to search
Line 6: Line 6:
  
 
== Properties ==
 
== Properties ==
 +
 +
{|
 +
| width="90" valign="top" | [[TTnScript.InputBufferSize| InputBufferSize]] |||| Size of buffer to use for internal scanning, must be twice as long as longest search string.
 +
|-
 +
| valign="top" | [[TTnScript.OnDisplay| OnDisplay]] |||| When a search string is found, this event handler is triggered. Parameter is displayable text string.
 +
| valign="top" | [[TTnScript.OnStringMatch| OnStringMatch]] |||| When a search string is found, this event handler is triggered. Parameter is ID of search string.
 +
|}
  
 
== Methods ==
 
== Methods ==

Revision as of 10:12, 30 December 2015

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