Krombik / keysender

Node.js Desktop Automation for Windows.
MIT License
82 stars 9 forks source link

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

Open Mr-VIT opened 1 year ago

Mr-VIT commented 1 year 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