← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #156242]: Use for-loop to observe screen

 

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

RaiMan posted a new comment:
--- your file question first:

your solution is ok, but if you want to use a file for logging, one
usually collects information in that file over the time.

using:
file = open("Full way to the file", "w")
clears the content of that file every time, so that it only contains the latest input.

use:
file = open("Full way to the file", "a")
to append the next input to the end of the current content ("a" stands for append)

use:
file = open("Full way to the file", "w")
to start all over again.

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