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

    Status: Open => Answered

RaiMan proposed the following answer:
--- parameters from command line
use as described in 
http://sikuli.org/docx/faq/010-command-line.html#how-to-run-sikuli-from-command-line
e.g. on Windows:
Sikuli-IDE.bat -r your-script.sikuli --args parameter1 parameter2
your parameters will be in sys.argv beginning at index 1

just to show it works:
for i in range(len{sys.argv)):
    print "Parameter "+str(i), sys.argv[i]

--- parameters from a file
You might create a file with somehow structured lines, where each line contains 
a set of parameters.
e.g. one line
parameter1, parameter2, parameter3

lines = file("absolute-path-to-parameter-file").readlines()
for line in lines:
    print line

# take first line
pset = lines[0]
(p1, p2, p3) = pset.split(",")

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to