OSRSB / OsrsBot

A RuneLite bot automation extension API for Old School RuneScape
https://discord.gg/CGBXNrHREP
GNU General Public License v3.0
135 stars 69 forks source link

Block mouse input when script is running #296

Closed Nubebuster closed 1 year ago

Nubebuster commented 1 year ago

These changes make it so a user mouse clicks and motion do not override the bot mouse movements when a script is running and is not paused.

It does so by de-registering the mouse listeners when a script starts and putting a listener in between that determines whether mouse inputs come from the client or from the user. When the script stops the mouse listeners are re-registered and the middleman is de-registered,

Nubebuster commented 1 year ago

Tab spacing? Really? :confused: