Click or drag to resize

OhioScreenSendKeysAsync(String, 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 current cursor position.

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

Parameters

text  String
String of characters to be sent to the virtual screen.
canceltoken  CancellationToken  (Optional)
Token to cancel the send.

Return Value

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