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
  • Try asking for help in the chatbox
  • Making use of MouseAlgorithm<T, I>


    itsgrimetime
     Share

    Recommended Posts

    Hi,

    Is there any way to make use of the MouseAlgorithm interface? I'd like to attempt implementing my own mouse movement.

    I noticed there's a single implementation, DreamMouseAlgorithm, which I imagine could be the default implementation that is used for all built-in mouse movement (although it strangely has a main method), but I haven't found any classes with constructors or methods that take a MouseAlgorithm as a parameter.

    If it's deprecated/unusable, what's the current best practice for implementing our own movement?

    Thanks for the help!

    Link to comment
    Share on other sites

    2 hours ago, Pengu said:

    getMouse.setAlwaysHop(true);

    Hm, okay, I'm not quite sure I understand how this would allow me to implement my own mouse movement. Does this function not simply turn off all actual mouse movement and just teleport the cursor to the location its going to? I might need a little bit more of an example, if you would kindly provide one.

    Link to comment
    Share on other sites

    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
     Share

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