npocmaka / batch.scripts

batch script utils and examples by npocmaka -
https://www.linkedin.com/in/npocmaka/
MIT License
1.06k stars 863 forks source link

DragTo inaccurate #19

Open Fike7 opened 5 years ago

Fike7 commented 5 years ago

I just modified the following lines inside the DragMouseTo funcion:

replaced

mouseInput.mkhi.mi.dx = x; mouseInput.mkhi.mi.dy = y;

for

mouseInput.mkhi.mi.dx = CalculateAbsoluteCoordinateX(x); mouseInput.mkhi.mi.dy = CalculateAbsoluteCoordinateY(y);

And now works correctly

npocmaka commented 5 years ago

@Fike7 - thanks! I'll check this tomorrow.