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

    Status: Open => Answered

RaiMan proposed the following answer:
I do not really understand your intention, since you say:
I'm using recursion to find image again on each step, because after one image 
is clicked, others change position.

… but with 
Finder ("1429541887831.png")

you always search in the same image.

And I do not understand, why 
 scr1.click(icon)

should click on Screen(1), if this does not have the coordinates (0,0) top left.
with scr1.click(icon), icon in this moment is a Match/Region with 
coordinates(top left) relative to the top left as (0,0) of the given image when 
you started the Finder("1429541887831.png").

So if you want to react on changes in your workflow and what you want to
control is visible on Screen(1), then you should use these functions:

sorted_icons = sorted(list(scr1.findAll(whatever)), key=order)

this would at the beginning "freeze" the positions of the found icons.

… but still I do not really understand your intention.

-- 
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

Reply via email to