Tsopic Posted April 12, 2014 Share Posted April 12, 2014 Hey, Quick question, how to move mouse to position/object model andhow to construct a mousedestination? Link to comment Share on other sites More sharing options...
YinZ Posted April 12, 2014 Share 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 Link to comment Share on other sites More sharing options...
Tsopic Posted April 13, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
FrostBug Posted April 14, 2014 Share 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 Link to comment Share on other sites More sharing options...