← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #161674]: How to use Target offset functionality in java

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
of course you can do.

targetOffset is a Pattern attribute. You have to
calculate/evaluate/guess the target offset some how.

usage:

Pattern pImage = new Pattern(Image).targetOffset(x,y)
r=s.exists(pImage,1);
s.click(r, 1)

would click at the target offset position (which is
r.getCenter().right(x).below(y)).

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