Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Mouse.getLastClickedX and getLastClickedY both always return -1


    Recommended Posts

    The Mouse class has a large disclaimer/warning stating that you most likely do not need to concern yourself with its methods.



    My guess is that Mouse methods are most likely deprecated, soon to be deprecated, or non-functioning.

    Surely there is another way to accomplish what you've set out to do?

    Link to comment
    Share on other sites

    Yes, i simply have a wrapper method for click() that records the current mouse position in a public static variable I can access anywhere, Mouse.getX nad Mouse.getY are still functional.


    I did see that note in the javadocs. I just didn't interpret "do not have to concern yourself" as non-functioning, rather just a note that using these methods isn't necessary. So I thought I'd report it.

    Link to comment
    Share on other sites

    It looks like I didn't add that back in when I added the new mouse algorithm stuff, I'll see if I can toss that back into the default algorithm so it should work again.

    Sorry about that!

    Link to comment
    Share on other sites


    This topic is now archived and is closed to further replies.

    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.