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.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp