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

Implementing different mouse clicking strategies. #10

Open
fitzypop opened this issue Aug 8, 2021 · 3 comments
Open

Implementing different mouse clicking strategies. #10

fitzypop opened this issue Aug 8, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@fitzypop
Copy link
Owner

fitzypop commented Aug 8, 2021

Random interval clicking is better than clicking away every second, but it still doesn't represent a "realistic" clicking style that a human would replicate if actually clicking and using the mouse for real-world activities.

I also recently watched a video about the Strategy pattern, and I think it would be a good idea to create different types of clicking patterns and styles to simulate a "real" human interaction with the mouse.

Making a system of my own dunder methods or abstract methods is simple enough, the tricky part is coming up with algorithms for different clicking patterns without massively duplicating code.

@fitzypop
Copy link
Owner Author

fitzypop commented Aug 8, 2021

Instead of using an Abstract Base Class with an Abstract Method, I've decided on using the Protocol from the typing module to implement a new dunder method __click__(self)

@fitzypop fitzypop self-assigned this Aug 8, 2021
@fitzypop fitzypop changed the title Think about implementing different mouse clicking strategies. Implementing different mouse clicking strategies. Aug 9, 2021
@fitzypop
Copy link
Owner Author

fitzypop commented Aug 9, 2021

What alternative strategies should I implement?

Is there a way I can record my mouse clicks and generate a clicking strategy from it (without capturing other data)?

@fitzypop
Copy link
Owner Author

Created one more strategy called 'NaturalClickStrategy' in #13

@fitzypop fitzypop added the enhancement New feature or request label Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant