← Back to team overview

sikuli-driver team mailing list archive

[Question #201896]: Return back to?

 

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

while exists("MYIMAGE"):
    rightClick("IMAGE")
    click("IMAGE")
    wait(1)
else:
    while exists("IMAGE"):
        wait("IMAGE", FOREVER) 
        click("IMAGE")
        wait(10)
        
So i have this i just threw it together real quick but im pretty sure it would work. So my question about it is.. Say my while exists is an item and im dropping all of them from a container but my "else:" is me putting new ones back in. How can i get it to go back to the "while exists("MYIMAGE"):" to dump them again? Cause the script above will just continue to obtain new ones but never dump them.


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