← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #698272]: Loop is not working (while, if)

 

Question #698272 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/698272

Ricardo Luzini posted a new comment:
Hi RaiMan, thanks for you quick answer.

I tried the suggested solution, but I got the same error message. I also
tried "without Pattern" in the lines, just fixing the brackets.

while(war.hasWindow() and andAndo and brigar <> 5):
	If exists(Pattern("enon.png")):
		click(Pattern("Toran.png".similar(0.90))
	wait("Batalhar-1.png",50)
	click("Batalhar-2.png")
	If exists("enon.png"): #check erro rede
		click(Pattern("Toran.png").similar(0.90))
	wait(Pattern("be.png").targetOffset(133,-8),50)
	click(Pattern("be.png").targetOffset(133,-8))
	If exists("enon.png"): #check erro rede
		click(Pattern("Toran.png").similar(0.90))
	wait("tien.png",50)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.