Skip to content

moveMouse refactor to use sendInput on Windows (#26) #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Oct 10, 2021
Merged

moveMouse refactor to use sendInput on Windows (#26) #82

merged 8 commits into from
Oct 10, 2021

Conversation

Reiss-Cashmore
Copy link
Contributor

@Reiss-Cashmore Reiss-Cashmore commented Oct 10, 2021

Hi,

This PR should nicely refactor the moveMouse method
Ref: #26

I believe everything here is inline with the Microsoft documentation and guidelines here
https://docs.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-mouseinput

There might still be some flags worth exploring and dwExtraInfo but I am not too sure

Not sure if you want the helper methods for converting the points to absolute coords to live within mouse.c

@Reiss-Cashmore Reiss-Cashmore changed the title moveMouse refactor to use sendInput on Windows moveMouse refactor to use sendInput on Windows (#26) Oct 10, 2021
@Reiss-Cashmore
Copy link
Contributor Author

By the looks of it, it failed because it's worried about some type coercion and loss of data through the casting. I'll need to probably read up a bit as I really don't know C++ very well

Copy link
Member

@s1hofmann s1hofmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Reiss-Cashmore 👋

Looking good overall, I just added a few small remarks.

Thanks for contributing!

@s1hofmann s1hofmann merged commit dd463e7 into nut-tree:develop Oct 10, 2021
@s1hofmann
Copy link
Member

Pipelines completed, your change is available in @nut-tree/nut-js@next, @Reiss-Cashmore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants