← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #692777]: Sending a var from a python program to sikuli server

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
--- localhost:50001/groups/groupname/script/run&args ?

... is not what the current server implementation understands.

How to in 2.0.4:

- in one process start the server using the -s command line parameter

- in another process issue GET requests towards localhost:50001 using
e.g. curl or similar features in Python

/start --- start the server
/stop --- stop the server
/startp --- start the Jython environment 

/scripts/someFolder --- where the scripts can be found
/images/someFolder --- where the images are stored (optional)

/run/someScript --- run a script (someScript.sikuli in folder
someFolder)

add parameters for a script run:
/run/someScript?param1=value1;param2=value2;...

instead of ; you might use &

in the script you get sys.argv as
[ ;"--param1=value1";"--param2=value2";...]

more features are not available in the current implementation.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.