OhioScreenSendKeysAsync(String, Int32, CancellationToken) Method |
Sends a string of keystrokes to the virtual screen. This method acts as if keystrokes
were being typed from the keyboard of a terminal. The keystrokes will be sent to the
position provided.
Namespace: Flex.Hal.OhioAssembly: Flex.Hal.Ohio (in Flex.Hal.Ohio.dll) Version: 6.0.8219.1880
Syntax public Task<bool> SendKeysAsync(
string text,
int pos,
CancellationToken canceltoken = default
)
Public Function SendKeysAsync (
text As String,
pos As Integer,
Optional canceltoken As CancellationToken = Nothing
) As Task(Of Boolean)
Parameters
- text String
- String of characters to be sent to the virtual screen.
- pos Int32
- The position where the string of keys is to be sent.
- canceltoken CancellationToken (Optional)
- Token to cancel the send.
Return Value
TaskBooleanTrue if the text is sent successfully before a cancellation; otherwise, false.
See Also