sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #04732
Re: [Question #168536]: Loop script won't work
Question #168536 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/168536
Status: Answered => Open
Mike is still having a problem:
OK thank you, that's done but now got error on click getLastMatch()
[error] Error message: SyntaxError: ("mismatched input 'getLastMatch'
expecting NEWLINE", ('C:\\Users\\Mike\\AppData\\Local\\Temp\\sikuli-
tmp1479893245292668079.py', 62, 9, ' click getLastMatch()\n'))
click getLastMatch(whats meant to be here) is this the right one for it
to start again at top of script, first image.....!!!
# --- this loops as long as img is visible
if exists(img1 , 0):
click getLastMatch()
if exists(img2 ,0):
continue # skip the rest and start next turn
popup("Under ATTACK!")
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.