Single Core Posted July 19, 2014 Posted July 19, 2014 I'd like to simply hide my paint but I can't seem to get the MouseListener to function properly. Any input why this is happening?
Dashboard Posted July 19, 2014 Posted July 19, 2014 Implement MouseListener in your main class (the class that extends Script). In onStart() add this line - bot.addMouseListener(this);
Single Core Posted July 19, 2014 Author Posted July 19, 2014 Implement MouseListener in your main class (the class that extends Script). In onStart() add this line - bot.addMouseListener(this); Oh, Thanks.
Apaec Posted July 19, 2014 Posted July 19, 2014 this.bot.addMouseListener(new java.awt.event.MouseListener() { @Override public void mouseClicked(MouseEvent e) { Point m = e.getPoint(); if (rectanglePaintToggle != null && rectanglePaintToggle.contains(m)) { if (!hidePaint) { hidePaint = true; } else { hidePaint = false; } } } @Override public void mouseEntered(MouseEvent arg0) { } @Override public void mouseExited(MouseEvent arg0) { } @Override public void mousePressed(MouseEvent arg0) { } @Override public void mouseReleased(MouseEvent arg0) { } });
Swizzbeat Posted July 19, 2014 Posted July 19, 2014 Implement BotMouseListener, it provides more features. 1
Joseph Posted July 19, 2014 Posted July 19, 2014 Implement BotMouseListener, it provides more features. it provides one extra feature
Swizzbeat Posted July 19, 2014 Posted July 19, 2014 it provides one extra feature Which is an extra feature...?