Jump to content

Move mouse to object


Tsopic

Recommended Posts

 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
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);
Edited by Tsopic
Link to comment
Share on other sites

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);
  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...