sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #33907
Re: [Question #269618]: Error when running more than one script using hotkeys.
Question #269618 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/269618
Description changed to:
Hi, Im running Sikuli 1.1.0 I am having this problem...
def runMySikuliScriptA(event):
runScript("C:\Sikuli\Scripts\MySikuliScriptA")
Env.addHotkey(Key.F1, KeyModifier.CTRL+KeyModifier.SHIFT, runMySikuliScriptA)
while True:
wait(1)
def runMySikuliScriptB(event):
runScript("C:\Sikuli\Scripts\MySikuliScriptB")
Env.addHotkey(Key.F2, KeyModifier.CTRL+KeyModifier.SHIFT, runMySikuliScriptB)
while True:
wait(1)
If I run this script, and then I press Ctrl Shift F1 it runs
MySikuliScriptA properly and successfuly (create a Debug.log, and write
a file successfully), but if then (after 2 seconds) I press Ctrl Shift
F2 (in order to run MySikuliScriptB it doesn't do anything and when
stopping SIkuli (Shift Alt C) I get this message...
java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at java.awt.Robot.delay(Unknown Source)
at java.awt.Robot.autoDelay(Unknown Source)
at java.awt.Robot.afterEvent(Unknown Source)
at java.awt.Robot.mouseRelease(Unknown Source)
at org.sikuli.script.RobotDesktop.mouseUp(RobotDesktop.java:111)
at org.sikuli.script.Mouse.up(Mouse.java:376)
at org.sikuli.script.Mouse.up(Mouse.java:360)
at org.sikuli.script.Mouse.reset(Mouse.java:100)
at org.sikuli.script.Sikulix.cleanUp(Sikulix.java:326)
at org.sikuli.ide.SikuliIDE$ButtonRun$1.run(SikuliIDE.java:2177)
What does that mean? how can I solve this? I would like to put 6 or 7 scripts all with hotkeys.
Do I need to put the "wait for 1 second" after each script? or just at the end of all??
Thanks Advanced.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.