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

Hi,

I have a problem in my Sikuli python script and no idea how to solve it.

I need to click on an image, but this could slightly differ from one computer 
to another. My code now is something like this:

            while (exit != 1):
                count += 1 
                if exists("1508670860035.png"):
                    click("1508670923333.png")
                    exit = 1
                else:

I would like to say something like "if exists("1508670860035.png").similar(0.5) 
click ("1508670860035.png").similar(0.5)". 
So I would like to add sort of tolerance for this image, so it could not be 
exactly the same, but differ a little.

I tried to use similar() function but I think I used in a wrong way (my script 
crashed).

Any suggestion?

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to