Click or drag to resize

OhioScreenWaitForStrAsync Method

Waits for text to appear at the specified position.

Namespace: Flex.Hal.Ohio
Assembly: 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
)

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

TaskBoolean
True if text is received before a time-out or cancellation; otherwise, false.
Exceptions
ExceptionCondition
TimeoutExceptionWaitThrowException is enabled and a time-out occurs.
OperationCanceledExceptionWaitThrowException is enabled and a cancellation occurs.
See Also