sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #48613
Re: [Question #674136]: Loop break by if exists ("path to image") not work :(
Question #674136 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/674136
Adrian Zieliński posted a new comment:
Hi,
Probably I found solution :P I've just break loop in wrong moment :P
Here it is:
for n in range(20):
type (Key.F6, KeyModifier.SHIFT)
wait(2)
if exists("1537372097090-1.png",2):
find("1537372638707.png").click()
break
for n in range(4):
type(Key.TAB)
type(Key.ENTER)
x=0
y=+16
mouseMove(x,y)
mouseDown(Button.LEFT)
mouseUp(Button.LEFT)
wait(1)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.