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

I am completelly new to this and I would be glad to have some help :D
Basically I would like to have 3 consecutive loops withing else part of code - 
all three loops should be True in order to proceed. I am sure there is very 
simple solution, but I am not aware of it yet :D 

So what I tried to do is next:

if exists(some_img):
   click(some_img)
   wait(4)
   click(close)
else:
   while True:
      if not exists(some_img):
         click(some_img)
      else:
         break # I am not sure what to do here - maybe pass - or something - I 
just want script to preceed to check next loop
   while True:
      if not exists(some_img):
         click(some_img)
      else:
         break
   while True:
      if not exists(some_img):
         click(some_img)
      else:
         break
   click(close_img)

Usually i get stuck on first loop - or it jumps right to the last step of 
closing... Is there some neat solution to this?

Thank you in advance :D


  

-- 
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     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to