UtilKeyboardSendKey(Keys, KeyBehavior) Method

Sends a keystroke 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 SendKey(
	Keys key,
	KeyBehavior behavior
)

Parameters

key  Keys
The key to synthesize.
behavior  KeyBehavior
The keystroke behavior.

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