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
  • Is there a way to track exactly action has been clicked?


    Recommended Posts

    I am experimenting with logging the actions of my bots with the idea of comparing banned bots to see if there are any patterns.

    As part of this I want to track each mouse click action. So far I am using the java MouseListener class to trigger a method every time the mouse button is pressed.

    Within the MousePressed() method (called when the left mouse button is pressed), I call getClient().getMenu().getDefaultAction(), which basically works fine when the client simply left clicks to do an action. It does not work if we right click and then select an option from the menu, it will be logged as if I just left clicked the default action in that exact spot.

    For logging purposes I want to log exactly what action has been pressed, whether it was left clicked or right clicked and selected from the menu.

    Is there any way I can do this? I have tried to look through the API in search of a way but haven't managed to come up with a solution!

    Any help or ideas would be much appreciated!

    Link to comment
    Share on other sites

    If you write your own interaction handler, sure. For small details like that it's not too bad, move mouse to entity, if action is first, left click, else open menu and click action.
    You can log those in your scripts, but there is not a way for you to grab that information from our interaction event, no.

    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.