using opencv I am able to detect an object in a game. However, when my mouse moves over to the coordinate (in the actual game window), its using absolute coordinate (based on monitor pixel). So when I move my actual game window, its no longer clicking at the right spot.
Is there a way to move the mouse within the game window? For example, say if my game window is 500x500, and rectangles is detected say at (100, 100), is there a way to mouse over (100,100) relative to the game window? because if I move my game screen, I still want my mouse to be able to move to the same location.