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

RaiMan proposed the following answer:
Since there is no goto in Python, you have to wrap every thing, that has to be 
repeated in a while block.
Inside the while block you can use continue to jump back to the start of the 
loop and break to jump to the next statement after the end of the loop.

simple solution in your case:

while True:
# put all your stuff in here - one level indented

at line 44:
if not get: continue # jumps back to the while

BTW: line 41: use similar(0.99) instead of exact() (known issue)

One more thing:
geg is given a value in line 41 and then used multiple times in the following 
workflow  (if geg:) without being refreshed - looks strange!

I am always really surprised, that scripts like yours ever get working
;-)

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