← Back to team overview

sikuli-driver team mailing list archive

[Question #229562]: code exits

 

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

Hello,
I hope someone help me on this situation. This is my code it works only one time when onAppear happens calls darker event after event finished, Code exit. It dosent wait onAppear again. I am noob with phyton i hope some one help me about this.
Best regards

def darker(event):
        find("1369324585799.png")
        click("1369323823739.png")
        if exists("1369327017989.png"):
            click("1369324124167.png")
        else:
            click("1369326919620.png")
 
onAppear("1369323286214.png", darker)
observe(FOREVER)


    





-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.