-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Conversation
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 |
There was a problem hiding this 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!
Make Absolute coord calculation return MMPoint
Pipelines completed, your change is available in |
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