volcom3d Posted March 27, 2017 Posted March 27, 2017 Is there a way to instantly move the mouse to a location?
volcom3d Posted March 27, 2017 Author Posted March 27, 2017 Just now, Juggles said: Yes there is How?
Juggles Posted March 27, 2017 Posted March 27, 2017 Just now, volcom3d said: How? I forgot how but i did it a few months ago when I made 3 tick cooking
volcom3d Posted March 27, 2017 Author Posted March 27, 2017 1 minute ago, Chris said: here https://osbot.org/api/ Yes i know I checked!! But it isnt clear... Is it the move(int x, int y) function?
Reveance Posted March 27, 2017 Posted March 27, 2017 On 6/7/2016 at 11:49 AM, Explv said: 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. 1
Explv Posted March 27, 2017 Posted March 27, 2017 (edited) 4 minutes ago, volcom3d said: Thanks! Just to add though, that method I wrote uses the random method to choose a point to move the mouse to. That isn't very human like, although nor is moving the mouse instantly. Edited March 27, 2017 by Explv 1
volcom3d Posted March 27, 2017 Author Posted March 27, 2017 Allright I'm just gonna stick with Advertising other bots isn't allowed.. Thanks guys