← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #238896]: Passing multiple text arguments into Sikuli.

 

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

RaiMan proposed the following answer:
ok, Sikuli script talks Python.

the above example was only, to check wether this works for you printing
the contents to the message area.

To use the values, you have to assign them to variables or a list, that
you the use with type.

e.g. 
to get all supplied vars in a list and use them with type afterwards.

vars = [] # empty list
for e in sys.argv[1:]: 
    vars.append( e.replace("#", " ") )

type(vars[3])
type(Key.ENTER)

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