← Back to team overview

sikuli-driver team mailing list archive

[Question #203506]: have given entire code please check

 

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

import shutil
import os
wait(5)
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)
dir = os.path.dirname(getBundlePath()) # the folder, where your script is stored
img2 = capture(SCREEN) # snapshots the screen
shutil.move(img2, os.path.join(dir, "shot2.png")) # to make it persistent
if  img == img2:
    popup("hello")
else: 
    popup("hi")
                


why this is always giving pop up hi not hello... though i haven't changed the screen.

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