June 7, 20169 yr 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.
June 7, 20169 yr Author Hahahaha as I was reading your comment I remembered that only mouse clicks are recorded ... At least I think
June 7, 20169 yr 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, 20169 yr by Explv
June 7, 20169 yr Author 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
June 7, 20169 yr 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, 20169 yr by Explv
June 7, 20169 yr Author 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
Create an account or sign in to comment