← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #231016]: Simple Code - Exception Problem

 

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

    Status: Answered => Open

mario dulge is still having a problem:
Sorry about that. Here is the code I entered:

wheat = exists(Pattern("1371649544991.png").similar(0.38))
while wheat:
    click(Pattern("1371649544991.png").similar(0.38))  # Error comes at this point. I can't continue to the next code if the image disappears.            
fight = exists(Pattern("1371638996568.png").similar(0.41))
if fight:
    click(Pattern("1371638996568.png").similar(0.36))
battle = exists("1371645764748.png")
if battle:
    click("1371645089762.png")
    wait(5)
    click("1371646186015.png")
    wait(5)
    click("1371645764748.png")
    wait(5)
battle = exists("1371645764748.png")
while battle:
    click("1371645089762.png")
    wait(5)
    click("1371646186015.png")
    wait(5)
    click("1371645764748.png")
    wait(5)
end = exists("1371646595046.png")
if end:
    click("1371646615073.png")

-------------------------------------------

Then I tried entering your code but the image does not get clicked at
all. Could you please clarify how you would enter it through the code I
provided. And thank you for the help again.

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