Event OnHostTextAt
This command runs a script when the specified text would be written to the screen at the given location by a host program.
The location specified must be at the beginning of text that is written after another escape sequence has been run. You can find the text after a cursor positioning escape call, but not in the middle of a longer text string.
Syntax
Event OnHostTextAt text, x, y, hide_chars, cmnd
Synonyms
EV
Parameters
The following table describes the parameters of the Event OnHostTextAt command:
| Parameter | Description |
|---|---|
| x | Column on screen for the start of the text (zero based). |
| y | Row on screen for the start of the text (zero based). |
| hide_chars | If this flag is set to True, then the characters that match the text parameter are not shown on the screen (up to a limit of 255 characters). If False, then the text shows as normal. |
| cmnd | The script command to run if the event is triggered. |
Examples
The following example replaces
the pie chart option by "***" in the WIN.DEMO program.
Event OnHostTextAt "1.
Bar charts",5,8,true,"Print 'found bar charts';Display Direct '***'"Related Script Commands
TriggerAdd, Event OnHostText, Event Delete
Version
6.3.0 Original version