Jump to content

MouseListener with input disabled?


Recommended Posts

Posted

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

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...