I know which function to use, but I cannot get it to work correctly. I used SetCursorPos() , the only problem is that it sets the cursor not to the coordinates of the windows, but to the coordinates of the screen. I also tried ScreenToClient() , but it did not work with the SR.
Here is my code:
pt.x=113; pt.y=280; ScreenToClient(hWnd, &pt); SetCursorPos(pt.x, pt.y);
any idea? I am using win32. Hope I have given enough information.
source share