December 30, 201510 yr 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? Edited December 30, 201510 yr by Tazmania
December 30, 201510 yr 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 December 30, 201510 yr by Joseph
December 30, 201510 yr bot.addMouseListener(yourListener) The listener only captures mouse events fired by the user; not the script (it used to capture everything, but not anymore AFAIK).
Create an account or sign in to comment