sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #07784
Re: [Question #183105]: Sikuli Command prompt Issue
Question #183105 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/183105
Status: Open => Answered
RaiMan proposed the following answer:
If you want to do some more sophisticated things with Sikuli script, you
need some basic Python knowledge ;-)
example:
read a csv-file and use the content
*** csv file content
"a text", 4711, 3.017, True
"another text", 4712, 3.018, False
*** the script
csv = file("path to your csv file")
csvList = []
for line in csv.readlines():
csvList.append(eval("[" + line.strip() + "]"))
csv.close()
print csvList # all content
print csvList[0] # first line of content
print csvList[-1][1] # last line 2nd field (4712)
*** how to use it in your script with a loop: see faq 1437
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.