The Scripting type exposes the following members.
Properties
Name | Description | |
---|---|---|
AutoMatchPrompt |
Gets or sets whether to automatically match prompt in WaitFor(ScriptEvent), ReadUntil(ScriptEvent),
ReadUntilPrompt()()()(), ReadLine()()()(), ReadChar()()()() and CheckFor(ScriptEvent) methods.
Default value is false.
| |
FinalExitCode |
Gets the exit code of the receiving channel when the connection was closed.
| |
HoldReceivedData |
Gets or sets a value indicating whether to hold received data in DataReceived()()()() property.
Default value is true.
| |
LastResult |
Gets the result of last called ReadUntilPrompt()()()(), ReadLine()()()(), ReadChar()()()() or ReadUntil(ScriptEvent) method. Please note that calling other scripting methods reset this to null.
| |
Prompt |
Gets or sets the sequence that is used to detect command prompt.
To use regular expressions, prepend the string with "regex:".
To use wildcards, prepend the string with "mask:".
Prompt sequence is used by ReadUntilPrompt()()()() method (and other methods if Prompt is specified).
To detect the current prompt automatically , use DetectPrompt()()()() method.
| |
ReceivedData |
Gets data received since the previous data-receiving method.
If HoldReceivedData is set to false, this returns null.
| |
Terminal |
Gets the containing terminal object.
| |
Timeout |
Gets or sets the timeout for receiving data in milliseconds.
Default value is one minute.
| |
TrimReadUntilResponse |
Gets or sets a value indicating whether ReadUntilPrompt()()()(), ReadLine()()()(),
ReadChar()()()() and ReadUntil(ScriptEvent) methods remove the prompt or end-of-line from the returned value.
Default value is true.
|