← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #165137]: Using multiple screenshots inside exists()

 

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

RaiMan proposed the following answer:
@ Albert
see docs: http://sikuli.org/docx/region.html#extending-a-region

BTW: Just found, the above snippet uses upper left corner of last match.
if you want to use center:

LastClick = getLastMatch().getCenter() # center of last clicked/found image
current = Region(lastClick.x, lastClick.y, 1, 1) # where we want to look around
nearest = current.nearby(100).find(wheat)

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