← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #212945]: Get image target offset as x, y coordinates

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
the target offset is stored in the Pattern object and in the match.

So depending on at what time you need the offset:

p = Pattern(image).targetOffset(x,y)
print p.get getTargetOffset()

m = find(p)
print m. getTarget()

since it seems, that the link from inside the IDE to docs does not work temporarily:
http://doc.sikuli.org

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