Jump to content

OnMouseClick


Recommended Posts

Posted (edited)

Hi, I would like to have control when the user clicks somewhere in the client (not when the script clicks).

Is there syntax to override the OnMouseClick method?

Let me give you some wisdom.

Override the onMouseClick()

And use that method to do what you want.

There is no way to tell if it's a human clicking or the bot. But there is a way to tell if human input is enable or disabled. So you could use that boolean with maybe another boolean (clicking shape).

getBot().isHumanInputEnabled ()

No need to implement mouselistener since it is already implemented in scripts.

Finally for it to activate. On the onstart you should enable it by using.

getBot ().add Mouse Listener (listener )

Edited by Joseph
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...