Skip to content
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

Hardware.mouse.moveTo actual coords sometimes with 1px offset [Windows] #26

Open
Mr-VIT opened this issue Aug 29, 2023 · 0 comments
Open

Comments

@Mr-VIT
Copy link

Mr-VIT commented Aug 29, 2023

example:

await appH.mouse.moveTo( 0, 0,   400);
console.log(appH.mouse.getPos())
// output == actual coords
{ x: 0, y: 1 }

robotjs' implementation also have offest sometimes but for other coords:
https://github.com/octalmage/robotjs/blob/8ae87a91f06f49559f0db387bc2bd1ea01419880/src/mouse.c#L133-L136

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

No branches or pull requests

1 participant