← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #216523]: Java API target offset

 

Question #216523 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/216523

    Status: Open => Answered

j proposed the following answer:
I think you can do it like this:

Target t = new ImageTarget(new File("close_downtime.png"));
DesktopMouse m = new Desktopmouse();
Screenregion s = new DesktopScreenRegion();

ScreenRegion match = s.wait(t,5000);
m.doubleClick(match.getRelativeScreenLocation(-65,2));

haven't tested this but it should work

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.