Strange_Fk Posted June 7, 2016 Share Posted June 7, 2016 Title says all, wondering if there is a way to change the mouse movement speed. Quote Link to comment Share on other sites More sharing options...
Token Posted June 7, 2016 Share Posted June 7, 2016 Yes there is, but why would you need this though? The simple setMouseSpeed was removed because we shouldn't need to set the mouse speed. 1 Quote Link to comment Share on other sites More sharing options...
Strange_Fk Posted June 7, 2016 Author Share Posted June 7, 2016 Hahahaha as I was reading your comment I remembered that only mouse clicks are recorded ... At least I think Quote Link to comment Share on other sites More sharing options...
Explv Posted June 7, 2016 Share Posted June 7, 2016 (edited) Title says all, wondering if there is a way to change the mouse movement speed. No, this feature was removed. If you need to move the mouse instantly then you can use: final void moveMouseInstantly(final MouseDestination mouseDestination) { Rectangle boundingBox = mouseDestination.getBoundingBox(); moveMouseInstantly(random((int) boundingBox.getMinX(), (int) boundingBox.getMaxX()), random((int) boundingBox.getMinY(), (int) boundingBox.getMaxY())); } final void moveMouseInstantly(final int x, final int y) { getBot().getMouseEventHandler().generateBotMouseEvent(MouseEvent.MOUSE_MOVED, System.currentTimeMillis(), 0, x, y, 0, false, MouseEvent.NOBUTTON, true); } And I'm sure if you spent some time making your own MouseEvent then you could have it at whatever speed you want. However, the setMouseSpeed feature was removed for a reason. Edited June 7, 2016 by Explv 3 Quote Link to comment Share on other sites More sharing options...
Strange_Fk Posted June 7, 2016 Author Share Posted June 7, 2016 No, this feature was removed. If you need to move the mouse instantly then you can use: final void moveMouseInstantly(final MouseDestination mouseDestination) { Rectangle boundingBox = mouseDestination.getBoundingBox(); moveMouseInstantly(random((int) boundingBox.getMinX(), (int) boundingBox.getMaxX()), random((int) boundingBox.getMinY(), (int) boundingBox.getMaxY())); } final void moveMouseInstantly(final int x, final int y) { getBot().getMouseEventHandler().generateBotMouseEvent(MouseEvent.MOUSE_MOVED, System.currentTimeMillis(), 0, x, y, 0, false, MouseEvent.NOBUTTON, true); } And I'm sure if you spent some time making your own MouseEvent then you could have it at whatever speed you want. However, the setMouseSpeed feature was removed for a reason. Damn you're always so knowledgeable with the JS! Thanks mah dude 1 Quote Link to comment Share on other sites More sharing options...
Apaec Posted June 7, 2016 Share Posted June 7, 2016 Damn you're always so knowledgeable with the JS! Thanks mah dude JS? 1 Quote Link to comment Share on other sites More sharing options...
Strange_Fk Posted June 7, 2016 Author Share Posted June 7, 2016 JS? javascript/ osbots apis 1 Quote Link to comment Share on other sites More sharing options...
Explv Posted June 7, 2016 Share Posted June 7, 2016 (edited) javascript/ osbots apis It is Java, not JavaScript. Two very different languages. Java: https://en.wikipedia.org/wiki/Java_(programming_language) JavaScript: https://en.wikipedia.org/wiki/JavaScript Edited June 7, 2016 by Explv 1 Quote Link to comment Share on other sites More sharing options...
Strange_Fk Posted June 7, 2016 Author Share Posted June 7, 2016 It is Java, not JavaScript. Two very different languages. Java: https://en.wikipedia.org/wiki/Java_(programming_language) JavaScript: https://en.wikipedia.org/wiki/JavaScript See this is exactly what I mean about being so knowledable 1 Quote Link to comment Share on other sites More sharing options...
Shudsy Posted June 7, 2016 Share Posted June 7, 2016 Explv please teach me your ways of knowing the difference between JS and Java. 3 Quote Link to comment Share on other sites More sharing options...