sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #37532
[Bug 1566637] Re: [1.1.0] Hotkey handlers do not properly clean up
Odd, I can't actually reproduce it with the script I gave you. However,
for unknown reasons yet that's the behavior in my script.
https://gist.github.com/samrocketman/12057af8bbf1463ca2a6
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1566637
Title:
[1.1.0] Hotkey handlers do not properly clean up
Status in Sikuli:
Opinion
Bug description:
OS: Mac OS X El Capitan 10.11.3 (15D21)
Sikuli 1.1.0
When you cancel a script use CMD+SHIFT+C (Mac) the Hotkeys remain
active.
e.g.
#START SCRIPT
def doClick(some_location):
last_mouse_location = Env.getMouseLocation()
click(some_location)
mouseMove(last_mouse_location)
def click_location(event):
doClick(Location(100, 100))
Env.addHotkey('1', 0, click_location)
#END SCRIPT
Now run the sikuli script. If you cancel the script with CMD+SHIFT+C
pressing the number 1 key will still execute the hotkey. I believe
this should Env.removeHotkey all of the registered hotkeys if the
script is canceled.
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1566637/+subscriptions
References