Can't quit Karabiner-Elements

Hi, community! :slight_smile:

I’m using a mini keyboard(FC660C). I remapped modi-keys via Karabiner-Elements. And it works well for me.

I want to quit Karabiner-Elements when I detach a mini keyboard. But Keyboard Maestro can’t quit Karabiner-Elements properly. Here’s a screenshot for my macro and a screencast test stuck with last popup window.

Keyboard Maestro Engine log says below.

2016-11-14 00:16:51 Execute macro ‘FC660C detached’ from trigger Name
2016-11-14 00:16:57 Assertion Failed: err == 0 ,  file: /Users/peter/Keyboard Maestro/Project/Source/Actions/APressButton.mm:85, value: -25204
2016-11-14 00:16:57 Press Button ‘Quit Karabiner-Elements’ failed to find button.
2016-11-14 00:16:57 Press Button ‘Quit Karabiner-Elements’ failed to find button. Macro ‘FC660C detached’ cancelled (while executing Press Button ‘Quit Karabiner-Elements’).

I think this macro pushed ‘Quit Karabiner-Elements’ button but can’t type :leftwards_arrow_with_hook:. Can I get some help?

Error -25204 is kAXErrorCannotComplete “The function cannot complete because messaging failed in some way or because the application with which the function is communicating is busy or unresponsive”. The log goes on to say “failed to find button”. So I would guess the process of enumerating the elements of that window is failing at some point and not finding (or pushing) the Quit button.

I’d suggest you use Click at Found Image instead.

1 Like

Thank you for kind reply, @peternlewis. Click at Found Image works well. :thumbsup:

1 Like