sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #21957
Re: [Question #237635]: Use clients info from txt
Question #237635 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/237635
Status: Solved => Open
Unuldinei is still having a problem:
I sorry for reopening this post. I'm looking for an improvement of the
project.
Info file remains the same:
John Doe
first street 1
10000 paris
rubber
01.01.2013
Mark Doe
first street 2
10001 paris
rubber bands
02.01.2013
Using your script as starting point, I want to write a script that cuts each line from the text file, so after the first loop the info file will look like this:
Mark Doe
first street 2
10001 paris
rubber bands
02.01.2013
My example:
for n in range (1000)
inp = open("c:\\test.txt")
line = inp.readline()
seq = 0
while line:
seq = seq +1
line = line.strip()
if seq == 1:
name = line
elif seq == 2:
address= line
elif seq == 3:
location = line
elif seq == 4:
product= line
elif seq == 5:
date = line
seq = 0
popup(str(name)+str(street))
line = inp.readline()
inp.close()
type("326874623.png",str(name))
type("454656765.png",str(address))
and so on ...
I'm new to programing, I know this might sounds like basics for you.
Thank you for your help
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.