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.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to