sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30613
Re: [Question #255783]: Capturing the Pattern found as part of the Match object returned
Question #255783 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/255783
RaiMan posted a new comment:
-1: yes, a Match object now carries the information about the image used for finding (an object of class Image).
Match.getImage() and Match.getImageFilename()
- 2. screen capture image used to find the given image
… currently always is the one taken at the last capture in any region belonging to that screen.
So this is only the "same" directly after a successful find.
-- same:
if exists(some_image):
print getLastMatch().getImage()
print getLastScreenImage() # this should contain some_image
-- not same:
if exists(some_image):
success = getLastMatch().getImage()
if exists(some_image1):
# still the same, since screen should not have changed
# different if screen meanwhile changed for some reason
In version 2 I will add some "visual logging".
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.