Jump to content

OnMouseClick


Tazmania

Recommended Posts

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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