sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #34411
Re: [Question #270082]: Calling a data from TXT file
Question #270082 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/270082
Status: Open => Answered
RaiMan proposed the following answer:
= 0
lines = open("notepad file.txt").readlines()
for line in lines:
i += 1
type("PLAN"+str(i))
fields = line.split()
k = 3
n = 2
name = ""
while fields[n] != "age":
k += 1
n += 1
name += " " + fields[n]
age = fields[k]
sex = fields[k + 2]
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.