volcom3d Posted March 27, 2017 Share Posted March 27, 2017 Is there a way to instantly move the mouse to a location? Quote Link to comment Share on other sites More sharing options...
Juggles Posted March 27, 2017 Share Posted March 27, 2017 Yes there is Quote Link to comment Share on other sites More sharing options...
volcom3d Posted March 27, 2017 Author Share Posted March 27, 2017 Just now, Juggles said: Yes there is How? Quote Link to comment Share on other sites More sharing options...
Juggles Posted March 27, 2017 Share 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 Quote Link to comment Share on other sites More sharing options...
Chris Posted March 27, 2017 Share Posted March 27, 2017 here https://osbot.org/api/ Quote Link to comment Share on other sites More sharing options...
volcom3d Posted March 27, 2017 Author Share 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? Quote Link to comment Share on other sites More sharing options...
Reveance Posted March 27, 2017 Share 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 Quote Link to comment Share on other sites More sharing options...
volcom3d Posted March 27, 2017 Author Share Posted March 27, 2017 2 minutes ago, Reveance said: Thanks! Quote Link to comment Share on other sites More sharing options...
Explv Posted March 27, 2017 Share 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 Quote Link to comment Share on other sites More sharing options...
volcom3d Posted March 27, 2017 Author Share Posted March 27, 2017 Allright I'm just gonna stick with Advertising other bots isn't allowed.. Thanks guys Quote Link to comment Share on other sites More sharing options...