← 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

mario dulge posted a new comment:
Ha, yeah. I got this from somewhere on youtube but it's not very
reliable. Anyway I tried entering the code. Here is what I changed as
you recommended:

wheat = exists(Pattern("1371649544991.png").similar(0.38))
while exists(Pattern("1371649544991.png").similar(0.38)):
    click(Pattern(getLastMatch())
            wait(1)
fight = exists(Pattern("1371638996568.png").similar(0.41))

I get the error:
[error] script [ code ] stopped with error in line 4 at column 12
[error] SyntaxError ( "no viable alternative at input 'wait'", )

I must look like such a noob right now. Ok I asked too many questions.
I'll just try reading the guides and see what I've done wrong.

Thanks RaiMan

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