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
  • getMouse().move() speed


    Gorn
     Share

    Recommended Posts

    So I noticed when calling this function it ignores the mouse speed setting. I even tried changing it through code at the beggining of the script but the speed is always the same. Any way to customize mouse speed when using this function?

    Link to comment
    Share on other sites

    so I tested it properly and I was wrong about it not afecting the mouse, I guess what I'm really looking for is setting the speed below 1

    even at the lowest speed it's still producing weird too fast movement in my 'anti-ban', but it probably doesn't matter

    although I wonder why is the speed int instead of a float

    Link to comment
    Share on other sites

    21 minutes ago, Gorn said:

    so I tested it properly and I was wrong about it not afecting the mouse, I guess what I'm really looking for is setting the speed below 1

    even at the lowest speed it's still producing weird too fast movement in my 'anti-ban', but it probably doesn't matter

    although I wonder why is the speed int instead of a float

    You can use a double or float and then cast to an int like so:

    MouseSettings.setSpeed((int) 0.5);

    Let me know if that works

    Edited by Xtra
    Link to comment
    Share on other sites

    So I tested it and it doesn't work (of course) but what is interesting that I didn't know is that it will always round down.

    log(Integer.toString((int) 0.1));

    gives the same result as

    log(Integer.toString((int) 0.9));

    in both cases it rounds it down to zero

    Link to comment
    Share on other sites

    Ah yes that makes sense, my apologies. Do you need it to be a float? My value was around 40 by default, and when set to 5 or so, made a huge difference. 

    Edited by Xtra
    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.