aeon0 / botty

D2R Pixel Bot
MIT License
531 stars 377 forks source link

Enhancement: Added support for async mouse moves #955

Open roozhou opened 2 years ago

roozhou commented 2 years ago

You can do mouse move in background with is_async=True in mouse.move.

mouse.sync waits until the mouse reaches target. mouse.stop stops the background move immediately or does nothing if the mouse is not moving. A new mouse.move stops mouse move in background first and goes to the new target

May cause issues if multiple threads are calling mouse.move (e.g. chicken).