Jump to content

MouseListener with input disabled?


Andrew

Recommended Posts

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

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