sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #31465
Re: [Question #264483]: 1.0.1 how to run sikuli script from command line
Question #264483 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/264483
Status: Open => Answered
RaiMan proposed the following answer:
Yep, normal first-time-use-of-this-feature-misunderstanding:
After the
Env.addHotkey(....
the script simply ends ;-)
... and the hotkey is no longer valid of course
So you have to keep the script running somehow.
for testing just add this
while True:
wait(1)
now the script runs forever and should react on the hotkey.
In production you should have some termination logic or just kill the
script using the abort key.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.