Question #169982 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/169982
Status: Open => Answered
RaiMan proposed the following answer:
I do not know, what is happening on your machine, but Yellow should
never be clicked with your snippet:
RegionA.exists(Blue.png,FOREVER) only comes back, if Blue appears and
returns the match which is taken as True and as False together with the
not. So the while loop should never be processed.
--- How can i modify this script so regardsless of how many times Blue.png
appear or disappear Yellow.png would still get clicked
I do not understand: this means, Yellow should be clicked in any case, when it
appears, no matter if Blue is there or not:
while True:
click(RegionB.wait(Yellow.png,FOREVER))
--
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