← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #207683]: Changing settings on mutiple GUIs

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
the basics:

if your file looks like this (addresses.txt)
192.168.0.1
192.168.0.2
192.168.0.3
192.168.0.4

read the ip's into a list

f = open("path-to-addresses.txt
ips = []
for line in f.readlines():
    ips.append(line.strip())
f. close()

for ip in ips:
    print ip # or your code to fill in the ip somewhere

the rest is standard Python scripting according to your needs.

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