← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #257211]: Sikuli magnifying the matched region and uses the middle of that magnified region leading to failure!

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
I just tested this with 1.1.0

rate = Pattern("1415537769898.png").targetOffset(28,0) # the image of the text "Rate" in the cell
# with Preview I set the target offset directly to point into the right sided cell
rateAll = sorted(findAll(Pattern(rate).exact()), key=lambda m:m.y)
for m in rateAll:
  print m
  click(m) # clicks into the right sided cell to focus
  doubleClick(m) # selects the text
  wait(1) # only to see something

the crosshair with the underlying square screenshot in case of slow motion run positions correctly.
Be aware: it shows the NEXT click target before moving there and clicking

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