OhioScreenWaitForStrAsync Method |
Waits for text to appear at the specified position.
Namespace: Flex.Hal.OhioAssembly: Flex.Hal.Ohio (in Flex.Hal.Ohio.dll) Version: 6.0.8219.1880
Syntax public Task<bool> WaitForStrAsync(
string text,
int pos,
bool ignorecase = false,
CancellationToken canceltoken = default
)
Public Function WaitForStrAsync (
text As String,
pos As Integer,
Optional ignorecase As Boolean = false,
Optional canceltoken As CancellationToken = Nothing
) As Task(Of Boolean)
Parameters
- text String
- The target string to wait for.
- pos Int32
- The screen position of the target string.
- ignorecase Boolean (Optional)
- Indicates whether the string to wait for is case sensitive. True means that case is ignored. Default value is false.
- canceltoken CancellationToken (Optional)
- Token to cancel the wait.
Return Value
TaskBooleanTrue if text is received before a time-out or cancellation; otherwise, false.
Exceptions See Also