InjectedInputKeyOptions
InjectedInputKeyOptions
InjectedInputKeyOptions
InjectedInputKeyOptions
Enum
Definition
Specifies the various options, or modifiers, used to simulate input from physical or virtual keyboards through InjectedInputKeyboardInfo.
Note
The APIs in this namespace require the inputInjectionBrokered restricted capability.
This enumeration has a System.FlagsAttribute attribute that allows a bitwise combination of its member values.
public : enum class InjectedInputKeyOptionspublic enum InjectedInputKeyOptionsPublic Enum InjectedInputKeyOptions// You can use this enum in JavaScript.
- Attributes
-
System.FlagsAttribute ContractVersionAttribute
| Device family |
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v3)
|
Fields
| ExtendedKey ExtendedKey ExtendedKey ExtendedKey | The key is an extended key, such as a function key or a key on the numeric keypad. |
| KeyUp KeyUp KeyUp KeyUp | The key is released. |
| None None None None | No keystroke modifier. Default. |
| ScanCode ScanCode ScanCode ScanCode | The OEM, device-dependent identifier for the key on the keyboard.A keyboard generates two scan codes when the user types a key—one when the user presses the key and another when the user releases the key. |
| Unicode Unicode Unicode Unicode | The key is a Unicode value. |
Remarks
Using input injection requires the following be added to the Package.appxmanifest:
- To
<Package>xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"IgnorableNamespaces="rescap"
- To
<Capabilities><rescap:Capability Name="inputInjectionBrokered" />