Log how many times image is clicked
Hi All!
I'm still new into sikuli, please bear with me. =)
I've finally setup a basic script and its running fine but now I wanted to log how many times the script looped and like how many times an image is clicked.
my script is something like this, its already looping back from beginning but wanted to track them.
-------
while True
if exists(image):
click(image)
-------
Thanks
-------
a solution:
loopCount = 0
clickCount = 0
while True
loopCount += 1
if exists(image):
clickCount += 1
print "loops:", loopCount, " clicks: ", clickCount
If you want to have logging with a time stamp:
http://
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: