sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #15319
[Question #217842]: Going outside the loop to fail a find
New question #217842 on Sikuli:
https://answers.launchpad.net/sikuli/+question/217842
simplified version of code.
a = find(pic1)
a1 = capture(a.getX(),a.getY(),a.getW(),a.getH())
b = find (pic2)
b1 = capture(b.getX(),b.getY(),b.getW(),b.getH())
while true:
click(b)
click(a)
continue:
What happens is it goes through the entire thing once fine, and then once it hits the continue, it stops, saying it failed line "b = find (pic2)". So, 2 problems with this, first being why is it going outside the loop, and secondly the find shouldn't be failing as pic 2 is fully visible in the same place it was before (I just have the variable to make it faster and better coding practice)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.