← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #153685]: targetOffset method is not properly setting the targetOffset in the java api.

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Pattern.similar() and Pattern.targetOffset() do not change the
respective attributes of the given Pattern, they return a new Pattern
object.

you have to say:

           Screen sikuli = new Screen();
           Pattern testPattern = new Pattern("DFWizard.DFName.PNG");
           testPattern = testPattern.similar(0.95f).targetOffset(30,0);

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