For example, I want to simulate a mouse click at a specific position in a window, but I don't want my real cursor to move or do anything. Is there a possible solution ?
More specifically, I want to do some mouse operations on a specific window, but without my cursor really doing it, which allows me to do other things normally with my mouse. Only the target window knows itself is being clicked, even when the window is minimized.
I know it's really easy use some code to move my cursor, with SetCursorPos()
, pyautogui.moveTo()
or something. But I can't do anything then!
The only way I can think of is to use a virtual machine.