← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #190878]: mining iron ore

 

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

Yunus Hasyim Yaakub posted a new comment:
work perfect! thank RaiMan. but how to make loop with non stop. ?


ironore = "iron.png"
pickup = "icon picup.png"
choose1 = "icon pickup.png"

while exists(ironore):
    rightClick(getLastMatch()) # no need to search again
    if exists(choose1):
        click(pickup)
        wait(7)
    else:
        wait(2)

while exists(ironore): <---- when iron gone look it stop, how to make
loop ? need make 2 while ?

while loop :
 while exists(ironore):

am i right ?

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