Skip to content

Commit e2322db

Browse files
Update ns-winuser-keybdinput.md
some minor revs
1 parent b1c807b commit e2322db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk-api-src/content/winuser/ns-winuser-keybdinput.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ helpviewer_keywords: ["*LPKEYBDINPUT","*PKEYBDINPUT","KEYBDINPUT","KEYBDINPUT st
66
old-location: inputdev\keybdinput.htm
77
tech.root: inputdev
88
ms.assetid: VS|winui|~\winui\windowsuserinterface\userinput\keyboardinput\keyboardinputreference\keyboardinputstructures\keybdinput.htm
9-
ms.date: 12/05/2018
9+
ms.date: 05/02/2023
1010
ms.keywords: '*LPKEYBDINPUT, *PKEYBDINPUT, KEYBDINPUT, KEYBDINPUT structure [Keyboard and Mouse Input], KEYEVENTF_EXTENDEDKEY, KEYEVENTF_KEYUP, KEYEVENTF_SCANCODE, KEYEVENTF_UNICODE, PKEYBDINPUT, PKEYBDINPUT structure pointer [Keyboard and Mouse Input], _win32_KEYBDINPUT_str, _win32_keybdinput_str_cpp, inputdev.keybdinput, winui._win32_keybdinput_str, winuser/KEYBDINPUT, winuser/PKEYBDINPUT'
1111
req.header: winuser.h
1212
req.include-header: Windows.h
@@ -144,7 +144,7 @@ An additional value associated with the keystroke. Use the <a href="/windows/des
144144
<b> INPUT_KEYBOARD</b> supports nonkeyboard-input methods—such as handwriting recognition or voice recognition—as if it were text input by using the <b>KEYEVENTF_UNICODE</b> flag. If <b>KEYEVENTF_UNICODE</b> is specified, <a href="/windows/desktop/api/winuser/nf-winuser-sendinput">SendInput</a> sends a <a href="/windows/desktop/inputdev/wm-keydown">WM_KEYDOWN</a> or <a href="/windows/desktop/inputdev/wm-keyup">WM_KEYUP</a> message to the foreground thread's message queue with <i>wParam</i> equal to <b>VK_PACKET</b>. Once <a href="/windows/desktop/api/winuser/nf-winuser-getmessage">GetMessage</a> or <a href="/windows/desktop/api/winuser/nf-winuser-peekmessagea">PeekMessage</a> obtains this message, passing the message to
145145
<a href="/windows/desktop/api/winuser/nf-winuser-translatemessage">TranslateMessage</a> posts a <a href="/windows/desktop/inputdev/wm-char">WM_CHAR</a> message with the Unicode character originally specified by <b>wScan</b>. This Unicode character will automatically be converted to the appropriate ANSI value if it is posted to an ANSI window.
146146

147-
Set the <b>KEYEVENTF_SCANCODE</b> flag to define keyboard input in terms of the scan code. This is useful to simulate a physical keystroke regardless of which keyboard is currently being used. You can additionally pass <b>KEYEVENTF_EXTENDEDKEYE</b> flag if scan code is extended key. The virtual key value of a key may alter depending on the current keyboard layout or what other keys were pressed, but the scan code will always be the same.
147+
Set the <b>KEYEVENTF_SCANCODE</b> flag to define keyboard input in terms of the scan code. This is useful for simulating a physical keystroke regardless of which keyboard is currently being used. You can also pass the <b>KEYEVENTF_EXTENDEDKEYE</b> flag if the scan code is an extended key. The virtual key value of a key can change depending on the current keyboard layout or what other keys were pressed, but the scan code will always be the same.
148148

149149
## -see-also
150150

0 commit comments

Comments
 (0)