Skip to content

SendInput for mouse movement on Windows #26

@s1hofmann

Description

@s1hofmann

Short overview
The current implementation uses SetCursorPos for mouse movment.
We might consider using SendInput like we do for scrolling and keyboard input.

Use case
Automating multimedia applications like e.g. games

Detailed description
As reported in nut-tree/nut.js#168 it is currently not possible to cause in-game mouse movement with nut.js, although desktop mouse movement works fine.
A possible reason for this could be the usage of SetCursorPos instead of SendInput.
Following the above mentioned docs it seems like SetCursorPos is more desktop centered, whereas SendInput actually inserts events into the keyboard and mouse inputstream.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions