OhioScreenWaitForCursorAsync Method |
Waits for the cursor to appear at the position.
Namespace:
Flex.Hal.Ohio
Assembly:
Flex.Hal.Ohio (in Flex.Hal.Ohio.dll) Version: 4.1.4031.1525
Syntax public Task<bool> WaitForCursorAsync(
int pos,
int msec,
CancellationToken canceltoken
)
Public Function WaitForCursorAsync (
pos As Integer,
msec As Integer,
canceltoken As CancellationToken
) As Task(Of Boolean)
Parameters
- pos
- Type: SystemInt32
Position to wait for. - msec
- Type: SystemInt32
The length of time to wait in milliseconds before a time-out occurs. - canceltoken
- Type: System.ThreadingCancellationToken
Token to cancel the wait.
Return Value
Type:
TaskBooleanTrue if the cursor appears at the position before a time out or cancellation;
otherwise, false.
See Also