Right now when I try a loop that contains something like:
mouse_event(MOUSEEVENTF_MOVE,dx,dy,0,0);
The mouse tends to move more than (dx,dy). Researching this online, I think it's because of the acceleration applied by the operating system. How can I move the mouse an absolute amount?
MOUSEEVENTF_ABSOLUTE seems to maybe be what I'm looking for, but I can't see how to use it.
I've tried:
mouse_event(MOUSEEVENTF_ABSOLUTE || MOUSEEVENTF_MOVE,dx,dy,0,0);
but that doesn't work either. I'd prefer to use mouse_event rather than SetCursorPos or other methods, what should I do? Thanks.