UtilKeyboardSendKey(Keys, KeyBehavior) Method
Sends a keystroke to the active window.
Namespace: DevCase.Core.IO.Devices.InputAssembly: 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
)
Public Shared Function SendKey (
key As Keys,
behavior As KeyBehavior
) As Integer
Dim key As Keys
Dim behavior As KeyBehavior
Dim returnValue As Integer
returnValue = UtilKeyboard.SendKey(key, behavior)
public:
static int SendKey(
Keys key,
KeyBehavior behavior
)
static member SendKey :
key : Keys *
behavior : KeyBehavior -> int
No code example is currently available or this language may not be supported.
- key Keys
-
The key to synthesize.
- behavior KeyBehavior
-
The keystroke behavior.
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.
This is a code example.
No code example is currently available or this language may not be supported.
SendKey(Keys.Enter, KeyBehavior.Press)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.