sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #15638
Re: [Question #219559]: Multiline text input
Question #219559 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/219559
Status: Open => Answered
RaiMan proposed the following answer:
put your stuff in a file and read it:
inp = open("somefile.txt")
lines = imp.readlines()
# now lines contains all lines as a list
inp.close()
for line in lines:
text = line.strip() # get rid of new line
print text
# or do anything with text, that you want
or access each line individually:
text = lines[0].strip()
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.