It's spam clicking for me and I haven't been able to solve the problem yet. I don't like the osbot API very much.
If I could do someting simple like this:
public void buy10() {
Point p = item.getPoint();
scr.client.moveMouseTo(p);
scr.sleep(Script.random(250, 300));
scr.client.clickMouse(false);
Point optionPoint = new Point(p.x, p.y + Script.random(67, 70));
scr.client.moveMouseTo(optionPoint);
scr.client.clickMouse(true);
}
I would be able to make something that atleast works, but we have to use MouseDestinations, RectangleDestinations and have a bunch of extra arguments to the mouse methods and I can't find any explanation of these objects and methods. http://osbot.org/api/ is not very helpful.