Starting script using a hotkey while Firefox is running?

Asked by folkert

Wat is THE best way to start a script from within Firefox (Windows ) using a hotkey and without Starting THE complete sikuli-ide?
Sort of using a sikuli runtime environment .

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

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.

Revision history for this message
RaiMan (raimund-hocke) said :
#2

OK, someone else might tell you, that this is possible also:

path-to-sikuli-ide-w.bat -r path-to-you-name-it.sikuli

which uses sikuli-ide.jar as runtime without showing the batch window and the IDE window.

Can you help with this problem?

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

To post a message you must log in.