Open
Description
This sample is pretty barebones and only shows how to replicate a mouse click. (Separating out the math for the clicked point from the actual input injection could be a good future improvement as well.)
However, even after digging into the API docs for the input injector methods, there's no examples or other info on simulating:
- a more complex mouse movement (i.e. drag from point A to point B over 1 second)
- a gesture with multiple independent touch points
- keyboard injection with multiple keys or a command key like Ctrl+C
- gamepad injection
- pen injection (with hover)
At least mouse move would be a good starting point to explain the flags and sending multiple points in a pipeline of some sort with the right timing to perform these operations. Otherwise, it's really impossible to understand how to use this API effectively without a lot of trial and error.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 3134b68b-ba59-426d-db7c-5c9a029d77b9
- Version Independent ID: f3e212bb-0e58-7665-3a24-9d899b446f69
- Content: Simulate user input through input injection - Windows apps
- Content Source: hub/apps/design/input/input-injection.md
- Product: reunion
- Technology: design
- GitHub Login: @Karl-Bridge-Microsoft
- Microsoft Alias: kbridge