InjectedInputMouseInfo Class

Definition

Represents programmatically generated mouse input.

public ref class InjectedInputMouseInfo sealed
/// [Windows.Foundation.Metadata.Activatable(196608, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
class InjectedInputMouseInfo final
[Windows.Foundation.Metadata.Activatable(196608, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
public sealed class InjectedInputMouseInfo
function InjectedInputMouseInfo()
Public NotInheritable Class InjectedInputMouseInfo
Inheritance
Object Platform::Object IInspectable InjectedInputMouseInfo
Attributes

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Examples

Here are some downloadable samples demonstrating basic input and input injection:

Remarks

Important

The APIs in this namespace require the inputInjectionBrokered restricted capability.

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

InjectedInputMouseInfo()

Creates a new InjectedInputMouseInfo object that is used to specify the mouse input to inject.

Properties

DeltaX

Gets or sets the change in value of an x-coordinate since the last mouse wheel event.

DeltaY

Gets or sets the change in value of an x-coordinate since the last mouse wheel event.

MouseData

Gets or sets a value used by other properties. The value is based on the MouseOptions flags set.

MouseOptions

Gets or sets the various options, or modifiers, used to simulate mouse input.

TimeOffsetInMilliseconds

Gets or sets the baseline, or reference value, for timed input events such as a double click/tap.

Applies to

See also