sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #24946
Re: [Question #245930]: can`t figure out what`s wrong in definitions
Question #245930 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/245930
Description changed to:
could anyone help me finding what`s wrong in these definitions? everytime i start the script, it says:
[error] script [ Nowy folder (3) ] stopped with error in line 8 at column 14
[error] SyntaxError ( "no viable alternative at input ')'", )
code:
def levelup():
if ok.exists("1395251329190-2.png"):
click("1395251329190-2.png")
else:
pass
def combat():
while exists(Pattern("1395591427929.png").similar(0.63)):
type(-)
click(Pattern("1395591427929.png").similar(0.63))
type(-)
click(Pattern("1395591427929.png").similar(0.63))
type(o)
continue
else:
click("1395593583567.png")
pass
def fight():
if exists(Pattern("1395592680025.png").similar(0.64)):
type(o)
wait(4)
combat()
else:
pass
@edit1
even when i delete the wrong line, the error stays there
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.