Question #255783 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/255783
Status: Open => Answered
Eugene S proposed the following answer:
Well, you can't get a match if the actual Pattern wasn't found on the screen.
The match object will only be created AFTER the pattern was matched on the
screen/region.
If you want just physically see what was visible on the screen in a specific
point in time you can just grab a screenshot and save it in file.
You can do it like that:
import shutil
img = capture(SCREEN) # img is an image file .png in temp folder now
shutil.move(img, <tagetPath>)
Eugene
--
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