← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #190795]: Image search out of the region

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
--- region=(some picture)
did you capture the region in the IDE and "some picture" is the thumbnail?
otherwise this does not make sense.

---  centro=region.getCenter(); mouseMove(centro); wait(1)
this is not needed, because rightClick() would move the mouse to the center of the match and click.

The blue rectangle might be a problem, because Sikuli has some problems
with solid colored areas.

Send me  a screenshot or put it somewhere in the net and post a link.

This is how it should work (at least with the latest build r931):

reg = Region(x, y, w, h) # captured or somehow evaluated
reg.rightClick("image.png")

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