ScriptEvent Class
Namespace: Rebex.TerminalEmulation
Assembly: Rebex.Terminal.dll (version 7.0.9083)
Represents a condition that can occur and be checked.
Syntax
public class ScriptEvent
Inherited Members
Properties
Name | Description |
---|---|
AnyText | Gets a ScriptEvent that matches any character that is not a part of escape sequence (e.g. color change is not matched). |
Closed | Gets a ScriptEvent that matches when the underlying channel is closed. |
Line | Gets a ScriptEvent that matches an end-of-line ('\n') sequence. |
Prompt | Gets a ScriptEvent that matches the prompt specified by Prompt property. |
Tag | Gets or sets a tag of this condition. |
Timeout | Gets a ScriptEvent that matches timed-out operation. |
Methods
Name | Description |
---|---|
And(ScriptEvent, ScriptEvent) | Both of the conditions must be met. |
CursorAtPosition(Int32, Int32) | Gets a ScriptEvent that matches a cursor appearing at the specified position. |
CursorInArea(Int32, Int32, Int32, Int32) | Gets a ScriptEvent that matches a cursor appearing in the specified area. |
Delay(Int32) | Gets a ScriptEvent that matches a delay (no data arrived for the specified time). |
Duration(Int32) | Gets a ScriptEvent that matches when data are received for specified time. |
Equals(Object) | Returns a value indication whether this object equals another object. |
FromRegex(String) | Gets a ScriptEvent that matches the regular expression. |
FromRegex(Regex) | Gets a ScriptEvent that matches the regular expression. |
FromString(String) | Gets a ScriptEvent that matches the specified string. |
GetHashCode() | Returns the hash code for the value of this instance. |
Not(ScriptEvent) | A condition must not be met. |
Or(ScriptEvent, ScriptEvent) | At least one of the conditions must be met. |
Or(ScriptEvent[]) | At least one of the conditions must be met. |
SetTag(Object) | Set the ScriptEvent's tag. |
TextAtPosition(String, Int32, Int32) | Gets a ScriptEvent that matches the specified string appearing at the specified position. |
TextInRegion(String, Int32, Int32, Int32, Int32) | Gets a ScriptEvent that matches the specified string appearing inside the specified region on the screen. |
TextOnCursorLine(String) | Gets a ScriptEvent that matches the specified string appearing at the cursor line. |
TextOnScreen(String) | Gets a ScriptEvent that matches the specified string appearing on the screen. |
ToString() | Returns human readable representation of this ScriptEvent. |
Operators
Name | Description |
---|---|
BitwiseAnd(ScriptEvent, ScriptEvent) | Both of the conditions must be met. |
BitwiseOr(ScriptEvent, ScriptEvent) | At least one of the conditions must be met. |
Implicit(String to ScriptEvent) | Converts string to the ScriptEvent. |
Implicit(Regex to ScriptEvent) | Converts Regex to the ScriptEvent. |
LogicalNot(ScriptEvent) | A condition must not be met. |