Krombik / keysender

Node.js Desktop Automation for Windows.
MIT License
75 stars 6 forks source link

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

Open Mr-VIT opened 10 months ago

Mr-VIT commented 10 months ago

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