Gorn 4 Share Posted August 5, 2020 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 More sharing options...
Xtra 31 Share Posted August 5, 2020 (edited) Try using this in your onStart() MouseSettings.setSpeed(); Edited August 5, 2020 by Xtra Gorn 1 Link to comment Share on other sites More sharing options...
Gorn 4 Author Share Posted August 5, 2020 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 More sharing options...
Xtra 31 Share Posted August 5, 2020 (edited) 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 August 5, 2020 by Xtra Link to comment Share on other sites More sharing options...
Gorn 4 Author Share Posted August 5, 2020 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 More sharing options...
Xtra 31 Share Posted August 6, 2020 (edited) 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 August 6, 2020 by Xtra Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now