sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #37506
[Bug 1566637] [NEW] Hotkey handlers do not properly clean up
Public bug reported:
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.
** Affects: sikuli
Importance: Undecided
Status: New
--
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:
Hotkey handlers do not properly clean up
Status in Sikuli:
New
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
Follow ups