Im trying to adjust the mouse position to the center of a target window position. To do so, I precalculate the X and Y coordinates that leads to the center position. To perform the mouse move, I am using "SetCursorPos" method from the winapi. My issue is now that the function does not align the x value properly if the cursor is at a lower resolution display (Full HD) and the move has to be performed to a higher resolution …
c# ×1