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

RaiMan posted a new comment:
@Deses
this does not do the requested job and is not a recursion.
On top, you have a name overlay with hand.

A recursive version would be:

def fHanf():
    hanf = exists(...)
    while hanf:
        click(...)
        hanf = exists(...)
        type(Key.ENTER)
        los = exists(...)
        if los :
            click(Pattern(...)
            boden = exists(....)
            if boden :
                click( ....)
            wait(...)
            ((text))
            click("KRDTHLETT-1.png")
        fHanf() # here the recursion happens
    # hanf() will exit, when hand does not exist any longer

 fHanf()

But I do not recommend to use recursion for these cases (risk of stack memory 
overflow).
I simple correctly setup while loop does the job very well.

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