Re: [Sikuli-driver] [Question #252488]: making loops and adding a counter

2014-08-06 Thread Richi
Question #252488 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/252488 Status: Answered = Open Richi is still having a problem: Hi, i have tried the code lines below but it is not working. this is the path to my log file as i want the log file to be on the desktop--

Re: [Sikuli-driver] [Question #252488]: making loops and adding a counter

2014-08-06 Thread RaiMan
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 =

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

2014-08-01 Thread Richi
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)

Re: [Sikuli-driver] [Question #252488]: making loops and adding a counter

2014-08-01 Thread Eugene S
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

Re: [Sikuli-driver] [Question #252488]: making loops and adding a counter

2014-08-01 Thread Richi
Question #252488 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/252488 Status: Answered = Open Richi is still having a problem: Hi, i thank you very much, i have tested the code below and it works really well. import time count = 1 for i in range(4): #To run 5 times

Re: [Sikuli-driver] [Question #252488]: making loops and adding a counter

2014-08-01 Thread RaiMan
Question #252488 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/252488 Status: Open = Answered RaiMan proposed the following answer: use Debug.user(some message) which gives you some more options like writing to a file: before the first use of Debug.user() write: