Skip to content

Conversation

@pentamassiv
Copy link
Collaborator

@pentamassiv pentamassiv commented Oct 19, 2025

When I removed the sleeps, it broke the move_mouse function. We need to manually set the location of consecutive events if the OS did not get enough time to process the simulated mouse move. Otherwise they override the new location to the old one.

Fixes #488, #400
Related to #399

When I removed the sleeps, it broke the move_mouse function. If the OS did not have enough time to process the simulated mouse move, we need to manually set the location of the following events so they don't change the mouse back to the old location.
@pentamassiv pentamassiv force-pushed the macos_move_mouse branch 5 times, most recently from cf2da6d to c21e64a Compare November 23, 2025 20:19
It now returns as soon as it finds the correct keycode. If none is found, it returns a None instead of 0 (keycode for 'A')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The move mouse the mouse cursor actually didnt change position

1 participant