← Back to team overview

sikuli-driver team mailing list archive

[Question #252488]: making loops and adding a counter

 

New question #252488 on Sikuli:
https://answers.launchpad.net/sikuli/+question/252488

Hello,

im currently using sikuli and its really fantastic…

my sikuli script below allows me to know the time taken to play the scenario.



import time
a = time.clock()

doubleClick("image1.png")
wait(1)
hover("image2.png")
sleep(2)
click("image3.png")
sleep(2)
hover("image4.png")
click("image5.png")

print " Run time: ",time.clock()-a,"seconds"




I would like to
 
1) play the above scenario 5 times(5 loops)  

2)  and also i would like to add a counter which can allow me to know how many loops sikuli has done.

I would like to know which code lines that i have to add in my above script in order that i have perform the 2 tasks.

thanx

richi

 


-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.