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

    Status: Open => Answered

Eugene S proposed the following answer:
Hi ,

To do what you want, simple loop will do the job. Just enclose whatever
code you have into it and add a simple counter. For example something
like that:


import time

count = 1
for i in range(4): #To run 5 times
     print "This is run number %s" %(count)
     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"
     print "_____________________"
     count += 1

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to