← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #668758]: Trying to externalize the target offset, the same as I have with the similarity

 

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

Manfred Hampl proposed the following answer:
see http://sikulix-2014.readthedocs.io/en/latest/pattern.html

targetOffset needs two parameters targetOffset(dx, dy)

Try

     mySimilarity = 0.81
     testtargetOffsetX = 1
     testtargetOffsetY = -8
     if exists(Pattern("1525837542502.png").targetOffset(testtargetOffsetX,testtargetOffsetY).similar(mySimilarity)):

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.