Difference between revisions of "TTnScript"

From Overbyte
Jump to navigation Jump to search
Line 11: Line 11:
 
|-  
 
|-  
 
| valign="top" | [[TTnScript.OnDisplay| OnDisplay]] |||| When a search string is found, this event handler is triggered. Parameter is displayable text 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.
 
| 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:13, 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