UtilKeyboardSendKeyAsync(IntPtr, Keys, KeyBehavior) Method
Asynchronouslly sends a keystroke to the specified 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 bool SendKeyAsync(
IntPtr hWnd,
Keys key,
KeyBehavior behavior
)
Public Shared Function SendKeyAsync (
hWnd As IntPtr,
key As Keys,
behavior As KeyBehavior
) As Boolean
Dim hWnd As IntPtr
Dim key As Keys
Dim behavior As KeyBehavior
Dim returnValue As Boolean
returnValue = UtilKeyboard.SendKeyAsync(hWnd,
key, behavior)
public:
static bool SendKeyAsync(
IntPtr hWnd,
Keys key,
KeyBehavior behavior
)
static member SendKeyAsync :
hWnd : IntPtr *
key : Keys *
behavior : KeyBehavior -> bool
No code example is currently available or this language may not be supported.
- hWnd IntPtr
-
A handle to the target window.
- key Keys
-
The key to synthesize.
- behavior KeyBehavior
-
The keystroke behavior.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.
This is a code example.
No code example is currently available or this language may not be supported.
Dim hWnd As IntPtr = Process.GetCurrentProcess().MainWindowHandle
SendKeyAsync(hWnd, 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.