INJECT Mnemonic - Set Button Response Text
Syntax
'INJECT' (id,text)
Description
The 'INJECT' mnemonic associates a string with a 'BUTTON' or 'TBUTTON' control. When that button is pushed, the text will be injected into the console typeahead buffer, where it can be read with a subsequent INPUT or READ command.
Parameter |
Description |
id |
Control ID number. It must correspond to a 'BUTTON' or 'TBUTTON' control in the current context. |
text |
Text to be injected into the console typeahead buffer when this button is pushed. |
Example
|