← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #271428]: I would like to compare an image to the screen

 

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

    Status: Needs information => Open

Nikki gave more information on the question:
I would like to compare a pic with a on screen list and have a popup if
the screen matches but I can not get the compare section correct. It
always popups the screen matches even if it does not.

if exists("1442408970638.png"):
    popup("Screen matches!")
else:
    popup("Screen does not match.")

Is there another method I could use instead of exists to compare the
screen to the picture?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.