← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #201896]: Return back to?

 

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

    Status: Solved => Open

Thomas is still having a problem:
Ok i was wrong your solution has me stuck. Yes mine worked but yours is
cleaner and i would still like to use it. So here is what happens say i
have 5 things to drop -

while True: # loops forever
    while exists("Ore"):
        rightClick("Ore")
        click("Drop")
        wait(1)
    else:
        while exists("Coal"):
            wait("Coal", FOREVER)
            click("Coal")
            wait(10)


Coal being the thing im mining and the Ore is what im dropping. So if i have 5 Ore to drop it will drop them but for some reason its expecting a 6th. Or seeing a 6th but iv changed the similarity bar very high so i make sure it see's nothing else and i dont see anything myself. It drops all 5 and then it thinks it still exists ((((  while exists("Ore"):  )))) and gets stuck when it cant right click it.
((((   rightClick("Ore")   ))))

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