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
  • Making use of MouseAlgorithm<T, I>


    itsgrimetime

    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

    Archived

    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.