My mouse move algorithm is like this, subtract the center of the screen from the target coordinates to get the offset distance, and then call mouse move, but due to game sensitivity or dpi issues, the "move" has to be called several times to get to the specified position, and each time it is called it is just "getting closer", and will not be accurate to the specified position.