← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #680220]: Differene between targetOffset and find."direction" operations

 

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

RaiMan proposed the following answer:
no problem ;-)

pat = find(img).right(30)
will only be evaluated once in a scriptrun and then always be a the evaluated location

pat = Pattern(img).targetOffset(30, 0)
will lead to a repeated find op everytime pat is used.

This of course is only of interest, if the image might change its
location during the same sciptrun.

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