Running only one command from command line

Asked by alans

Is there any possible way how to run only one command from command line?

e.g.

click(<image>)

something like

runScript.cmd -r "click(<picture>)" or something lik runScript.cmd --command "click(<picture>)" without definition of test.sikuli folder and script?

thank you

alans

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

this unofficial trick currently works (it is used during final setup test ;-)

you MUST use the java command

java -cp sikuli-script.jar org.sikuli.basics.SikuliScript -testSetup jython "some text making up a Python statement or more than one seperated by ; semi-colon"

Be aware: images must be given with absolute path (the challenge will be the quoting ;-)

Another possibilty would be, to setup a .sikuli or only a .py on the fly using
echo from sikuli import * >script.py
echo other statements
java -cp sikuli-script.jar org.python.util.jython script.py

Can you help with this problem?

Provide an answer of your own, or ask alans for more information if necessary.

To post a message you must log in.