sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #37513
[Question #290016]: get object [x] in loop
New question #290016 on Sikuli:
https://answers.launchpad.net/sikuli/+question/290016
Hi
not realy experienced with Sikuli yet :)
trying to get confirmation from objects in loop
like below defined
it always gets in FOUT
while the object shown on the screen is OK
I don't know what to put in 'if exists(P5)'
the objects to compare with are imported by "from XXXXX import*"
(also a totaly other solution to compare in loop existing objects with image seen on screen will do.)
for x in range(1,10):
P5= "ZVKORT"+str(x)
print(P5) # this gives the correct answer
wait(1)
if exists(P5):
log.write("[OK] "+ dts + nl)
wait(2)
else:
log.write("[FOUT] "+ dts + nl )
wait(2)
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.