Tsopic Posted April 12, 2014 Posted April 12, 2014 Hey, Quick question, how to move mouse to position/object model andhow to construct a mousedestination?
YinZ Posted April 12, 2014 Posted April 12, 2014 Rectangle r = new Rectangle(227, 444, 100, 8); this.client.moveMouseTo(new RectangleDestination(r), false, false, true); Used for moving mouse to position. I believe the min you can move mouse to is a 3x3 rectangle. 1
Tsopic Posted April 13, 2014 Author Posted April 13, 2014 (edited) Rectangle r = new Rectangle(227, 444, 100, 8); this.client.moveMouseTo(new RectangleDestination(r), false, false, true); Used for moving mouse to position. I believe the min you can move mouse to is a 3x3 rectangleThanks, for other newcomers, you can use something like that to move mouse on object. Rectangle y = object.getMouseDestination().getDestination(); sA.client.moveMouse(new RectangleDestination(y), true); Edited April 13, 2014 by Tsopic
FrostBug Posted April 14, 2014 Posted April 14, 2014 Thanks, for other newcomers, you can use something like that to move mouse on object. Rectangle y = object.getMouseDestination().getDestination(); sA.client.moveMouse(new RectangleDestination(y), true); Well, you may as well skip a step and use: MouseDestination dest = object.getMouseDestination(); sA.client.moveMouse(dest, true); 1