Click or drag to resize

OhioScreenSendKeysAsync 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 location given. If no location is provided or the location is out of screen scope, the keystrokes will be sent to the current cursor location.

Namespace:  Flex.Hal.Ohio
Assembly:  Flex.Hal.Ohio (in Flex.Hal.Ohio.dll) Version: 4.1.4031.1525
Syntax
public Task<bool> SendKeysAsync(
	string text,
	int pos,
	CancellationToken canceltoken
)

Parameters

text
Type: SystemString
String of characters to be sent to the virtual screen.
pos
Type: SystemInt32
The position where the string of keys is to be written.
canceltoken
Type: System.ThreadingCancellationToken
Token to cancel the send.

Return Value

Type: TaskBoolean
True if the text is sent successfully before a cancellation; otherwise, false.
See Also