sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #00759
Re: [Question #142168]: Unexpected result of Region.right()
Question #142168 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/142168
Status: Open => Answered
RaiMan proposed the following answer:
since each find() starts a new search, your approach is risky.
you should operate on the saved first match, to avoid new find
operations (the world might have turned ;-)
w = find(image)
print 'Found: %s' % w
wl = w.left(10)
print 'Left: %s' % wl
wr = w.right(10)
print 'Right: %s' % wr
and these left(), right() and other spatial operators mean outside of the base region.
so right in your case is
Match[720,395 211x26].right(10) -> Region[(720+211=931),395 10x26]
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.