sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #29464
[Bug 1363918] Re: [1.0.1] want an easy to use feature to run scripts from inside other scripts and Java code --- available in 1.1.0
** Summary changed:
- [1.0.1] want an easy to use feature to run scripts from inside other scripts and Java code
+ [1.0.1] want an easy to use feature to run scripts from inside other scripts and Java code --- available in 1.1.0
** Description changed:
+ ---- solution available in 1.1.0
+ class:
+ org.sikuli.scriptrunner.ScriptRunner
+
+ method:
+ /**
+ * run a script at scriptPath (.sikuli or .skl)
+ * @param scriptPath absolute or relative to working folder
+ * @param args parameters given to the script
+ * @return exit code
+ */
+ public static int run(String scriptPath, String[] args) {
+
+ -------------------------------------------------------
+
Hi,
i currently trying to integrate sikuli into sahi. At the sahi forum a found a code snippet which calls the runPython function. It seems that this function was replaced or renamed.
It currently says me "Type Error: [JavaPackage org.sikuli.script.ScriptRunner] is not a function, it is object" for all my trys.
-
Original snippet:
function runSikuli ($sikuli_script) {
- //_wait(10000) // wait for applets to load -- better do it in the sikuli skript by waiting for a specific image to appear
- var sikuli = new edu.mit.csail.uid.ScriptRunner();
- sikuli.runPython(new Array($sikuli_script));
- }
+ //_wait(10000) // wait for applets to load -- better do it in the sikuli skript by waiting for a specific image to appear
+ var sikuli = new edu.mit.csail.uid.ScriptRunner();
+ sikuli.runPython(new Array($sikuli_script));
+ }
Maybe someone can get me in the right direction. Thanks.
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1363918
Title:
[1.0.1] want an easy to use feature to run scripts from inside other
scripts and Java code --- available in 1.1.0
Status in Sikuli:
Fix Committed
Bug description:
---- solution available in 1.1.0
class:
org.sikuli.scriptrunner.ScriptRunner
method:
/**
* run a script at scriptPath (.sikuli or .skl)
* @param scriptPath absolute or relative to working folder
* @param args parameters given to the script
* @return exit code
*/
public static int run(String scriptPath, String[] args) {
-------------------------------------------------------
Hi,
i currently trying to integrate sikuli into sahi. At the sahi forum a found a code snippet which calls the runPython function. It seems that this function was replaced or renamed.
It currently says me "Type Error: [JavaPackage org.sikuli.script.ScriptRunner] is not a function, it is object" for all my trys.
Original snippet:
function runSikuli ($sikuli_script) {
//_wait(10000) // wait for applets to load -- better do it in the sikuli skript by waiting for a specific image to appear
var sikuli = new edu.mit.csail.uid.ScriptRunner();
sikuli.runPython(new Array($sikuli_script));
}
Maybe someone can get me in the right direction. Thanks.
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1363918/+subscriptions
References