UtilKeyboardSendString Method

Sends a string to the active window.

Definition

Namespace: DevCase.Core.IO.Devices.Input
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static int SendString(
	string str,
	int delay = 0
)

Parameters

str  String
The string to send.
delay  Int32  (Optional)
An optional delay, in milliseonds, to wait between inputs.

Return Value

Int32
The function returns the number of events that it successfully inserted into the keyboard input stream.

If the function returns zero, the input was already blocked by another thread.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also