← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #208083]: Starting script from within Firefox?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
To run a Sikuli script this is the minimal version:

java -jar path-to-sikuli-script.jar path-to-you-name-it.sikuli

(Ignore an error message, that might tell you, that the script cannot be
run, AFTER it is run ;-)

Means, a JVM must be started (java), that runs the "Sikuli runtime"
(sikuli-script.jar), which executes your script (you-name-it.sikuli).

So you have to implement a batch file with the above content and make it
runnable via hotkey.

Be aware: Currently Sikuli in the standard setup needs 3 - 5 seconds
start up time.

All prereqs and environment settings (can be integrated into the batch)
see faq 2005.

If you want a script, that instantly starts at a hotkey press, you might
setup a Sikuli script, that has defined different hotkeys, that trigger
different workflows. It is started and waits for the hotkeys to be
pressed.

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