Soldtodie Posted August 31, 2014 Share Posted August 31, 2014 How can I let the mouse hop to a certain position for mouse key dropping? mouse.hop(x, y) doesn't exist. Link to comment Share on other sites More sharing options...
Botre Posted August 31, 2014 Share Posted August 31, 2014 (edited) How can I let the mouse hop to a certain position for mouse key dropping? mouse.hop(x, y) doesn't exist. getMouse().move(x, y); If you want it to hop instead of "glide" you'll probably have to extend the Mouse class. Edited August 31, 2014 by Botrepreneur Link to comment Share on other sites More sharing options...
Soldtodie Posted August 31, 2014 Author Share Posted August 31, 2014 getMouse().move(x, y); ? Lol? I wrote hop and not move^^. Link to comment Share on other sites More sharing options...
Botre Posted August 31, 2014 Share Posted August 31, 2014 (edited) Lol? I wrote hop and not move^^. My bad :p Edited August 31, 2014 by Botrepreneur Link to comment Share on other sites More sharing options...
Swizzbeat Posted August 31, 2014 Share Posted August 31, 2014 Just send a mouse event at that position, making sure it extends from BotMouseEvent or whatever it's called or else the bot will consume it if human input is disabled. Yh doesn't seem possible, you could try this tho private boolean mouseHop(int x, int y) { boolean check; int speed = getMouse().getMouseSpeed(); getMouse().setSpeed(Integer.MAX_VALUE); check = getMouse().move(x, y); getMouse().setSpeed(speed); return check; } the fuck Link to comment Share on other sites More sharing options...
Botre Posted August 31, 2014 Share Posted August 31, 2014 (edited) Just send a mouse event at that position, making sure it extends from BotMouseEvent or whatever it's called or else the bot will consume it if human input is disabled. the fuck Integer.MAX_VALUE speed yo! (it's getting early over here...) Edited August 31, 2014 by Botrepreneur Link to comment Share on other sites More sharing options...
Dog_ Posted August 31, 2014 Share Posted August 31, 2014 Integer.MAX_VALUE speed yo! (it's getting early over here...) inb4 higher value is slower speed Link to comment Share on other sites More sharing options...
Swizzbeat Posted August 31, 2014 Share Posted August 31, 2014 inb4 higher value is slower speed I would assume the argument refers to milliseconds between events Link to comment Share on other sites More sharing options...
Botre Posted August 31, 2014 Share Posted August 31, 2014 I would assume the argument refers to milliseconds between events Dat mousehop tho 1 Link to comment Share on other sites More sharing options...