Andrew Posted July 16, 2017 Share Posted July 16, 2017 Hello I was wondering if there was a way to capture mouse events when user input is disabled? for example interacting with paint. Currently my script implements the MouseListener in the following way: public class main extends Script implements MouseListener and then inside on onStart this.client.getBot().addMouseListener(this); However this code only appears to work with user input enabled. An acceptable alternative would be to stop clicks going through to the game at certain parts of the screen. Thanks in advance Quote Link to comment Share on other sites More sharing options...
Alek Posted July 18, 2017 Share Posted July 18, 2017 Add it to the canvas. I haven't had time to investigate why the other route isn't working. Remember to remove your listeners once the script exits. Quote Link to comment Share on other sites More sharing options...