sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #49585
Re: [Question #676625]: Stop script, command line Windows
Question #676625 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/676625
Status: Open => Answered
masuo proposed the following answer:
It can stop running by killing the Windows console if run from
commandline using "java -jar C:\\SikuliX\\sikulix.jar -r
script.sikuli".
And it can stop running by using addHotkey() even if run from
commandline using "C:\\SikuliX\\sikulix.jar -r script.sikuli".
[example code:]
def stopScript(event):
exit()
Env.addHotkey(Key.END, KeyModifier.CTRL, stopScript)
popup("END/CTRL to stop")
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.