Click or drag to resize

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

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

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