InjectedInputKeyboardInfo
InjectedInputKeyboardInfo
InjectedInputKeyboardInfo
InjectedInputKeyboardInfo
Class
Definition
Represents programmatically generated keyboard input.
Note
The APIs in this namespace require the inputInjectionBrokered restricted capability.
public : sealed class InjectedInputKeyboardInfo : IInjectedInputKeyboardInfopublic sealed class InjectedInputKeyboardInfo : IInjectedInputKeyboardInfoPublic NotInheritable Class InjectedInputKeyboardInfo Implements IInjectedInputKeyboardInfo// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v3)
|
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" />
Constructors
InjectedInputKeyboardInfo() InjectedInputKeyboardInfo() InjectedInputKeyboardInfo() InjectedInputKeyboardInfo()
Creates a new InjectedInputKeyboardInfo object that is used to specify the keyboard input to inject.
Note
The APIs in this namespace require the inputInjectionBrokered restricted capability.
public : InjectedInputKeyboardInfo()public InjectedInputKeyboardInfo()Public Sub New()// You can use this method in JavaScript.
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" />
Properties
KeyOptions KeyOptions KeyOptions KeyOptions
Gets or sets the various options, or modifiers, used to simulate input from physical or virtual keyboards.
Note
The APIs in this namespace require the inputInjectionBrokered restricted capability.
public : InjectedInputKeyOptions KeyOptions { get; set; }public InjectedInputKeyOptions KeyOptions { get; set; }Public ReadWrite Property KeyOptions As InjectedInputKeyOptions// You can use this property in JavaScript.
- Value
- InjectedInputKeyOptions InjectedInputKeyOptions InjectedInputKeyOptions InjectedInputKeyOptions
The options, or modifiers, for the keyboard input.
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" />
ScanCode ScanCode ScanCode ScanCode
Gets or sets an OEM, device-dependent identifier for a key on a physical 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.
Note
The APIs in this namespace require the inputInjectionBrokered restricted capability.
public : ushort ScanCode { get; set; }public ushort ScanCode { get; set; }Public ReadWrite Property ScanCode As ushort// You can use this property in JavaScript.
- Value
- ushort ushort ushort ushort
The device-dependent identifier for the key on the keyboard.
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" />
VirtualKey VirtualKey VirtualKey VirtualKey
Gets or sets a device-independent identifier mapped to a key on a physical or software keyboard.
Note
The APIs in this namespace require the inputInjectionBrokered restricted capability.
public : ushort VirtualKey { get; set; }public ushort VirtualKey { get; set; }Public ReadWrite Property VirtualKey As ushort// You can use this property in JavaScript.
- Value
- ushort ushort ushort ushort
The device-independent identifier for the key on the keyboard.
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" />