making loops and adding a counter
Asked by
Richi
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(
wait(1)
hover("image2.png")
sleep(2)
click("image3.png")
sleep(2)
hover("image4.png")
click("image5.png")
print " Run time: ",time.
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
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Richi for more information if necessary.
To post a message you must log in.