← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #203506]: How To compare two screenshots

 

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

    Status: Answered => Solved

thomas confirmed that the question is solved:
import shutil
import os
wait(5)
click("EMicrosoftEx.png")
type("c", KeyModifier.CTRL)
x = Env.getClipboard()
dir = os.path.dirname(getBundlePath()) # the folder, where your script is stored
img = capture(SCREEN) # snapshots the screen
shutil.move(img, os.path.join(dir, "shot.png")) # to make it persistent
wait(10)
click("1342696730078.png")
dragDrop("1342699917812.png", "1342699925750.png")
click("Yes.png")
f = Finder("shot.png")
f.find(x)
if exists("x"):
    popup("klanti amar khoma koro prabhu")
print x; 
#f.next();
if f.next():
    popup("klanti amar khoma koro prabhu")
else:
    popup("Iam quiet near")


its working my friend :) iam happy to see it... was working on this for
last 4 hours............

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.