sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #27510
Re: [Question #252488]: making loops and adding a counter
Question #252488 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252488
Status: Open => Answered
RaiMan proposed the following answer:
the log file must denote a file, not only a directory:
Debug.setUserLogFile("dir" + "mylogs.txt")
this should work
dir = “C:\\Users\\Richi\\Desktop\\”
Debug.setUserLogFile("dir" + "mylogs.txt")
for i in range(4): #To run 5 times
print "This is run number %s" %(i)
a = time.clock()
doubleClick("image1.png")
wait(1)
hover("image2.png")
hover(“image3.png)
wait(2
click("image5.png")
print " Run time: ",time.clock()-a,"seconds"
print "_____________________"
Debug.user("finished %d loop", i)
BTW: take care for consistent indentation (see faq 1800)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.