Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mouse_move bugs #20

Closed
331841003 opened this issue Jun 28, 2023 · 3 comments
Closed

mouse_move bugs #20

331841003 opened this issue Jun 28, 2023 · 3 comments

Comments

@331841003
Copy link

Unless using your hand to move the mouse,
executing 'mouse_move' after the second attempt will result in an error distance

@331841003
Copy link
Author

331841003 commented Jul 3, 2023 via email

@331841003
Copy link
Author

331841003 commented Jul 3, 2023 via email

qb-0 added a commit that referenced this issue Jul 3, 2023
@qb-0
Copy link
Owner

qb-0 commented Jul 3, 2023

Thanks. Has been fixed:

pm.mouse_move(0, 0)
for i in range(5):
    sleep(1)
    print(pm.mouse_position())
    pm.mouse_move(20, 20, True)

Output:

{'x': 0.0, 'y': 0.0}
{'x': 20.0, 'y': 20.0}
{'x': 40.0, 'y': 40.0}
{'x': 60.0, 'y': 60.0}
{'x': 80.0, 'y': 80.0}

@qb-0 qb-0 closed this as completed Jul 3, 2023
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

No branches or pull requests

2 participants