does BTT have the equivalent of the very useful Keyboard Maestro "Press Button" actions ?

Unfortunately not all apps expose their AX tree - in a way that can be traversed from top :cry: especially cross platform or electron based things like Teams won't work with this. I will add a check when configuring the item, and add a warning / error in this case.

For edge I may be able to add a workaround that I have used for window snapping in the past, I'll try that!

1 Like

Thanks!

I've just tried it with BTT's CM, but it seems it is missing some values? I've tried to select the "Favorites" element and the result was:

Application{"BetterTouchTool"} -> AXWindows[1]Window{""} -> AXChildren[0]SplitGroup{""} -> AXChildren[0]Group{""} -> AXChildren[0]ScrollArea{""} -> AXChildren[0]Outline{"Sidebar"} -> AXChildren[2]Row{""} -> AXChildren[0]Cell{""} -> AXChildren[0]StaticText{""}

Which was not working, however after I've added manually "Favorites" to "AXChildren[0]StaticText" I was able to to execute the only action "AXMoveMouseToCenter". BTW is it expected to have only 1 possible action?

1 Like

It currently only records roles, not the actual content of elements (that would sometimes lead to a large path). I'll check why it's not working with the favorites item, maybe it stops traversing for some reason. The recorded path looks good.

The side bar buttons don't offer any actions, so BTT just defaults to AXMoveMouseToCenter which works for all elements

1 Like

I have no idea how all of this is working, but I'll ask anyway - why in the example above, for MS Edge, each element have some value and in the case for BTT's CM they do not have?

Edge and the like are quite optimized to be very accessible by screen readers etc.
While I would like the same to be true for BTT, this is a lot of work and I don't really have the resources to optimize BTT in that way ;-(

2 Likes

Andreas, can I use the "Interact With / Click Specific Ul Element" action to focus the Search text field in the BTT's CM? The UI element path is:

Application{"BetterTouchTool"} -> AXWindows[1]Window{""} -> AXChildren[0]SplitGroup{""} -> AXChildren[2]TextField{""}

Is this related to your last comment?

1 Like

You can also use CMD+F to focus the search field in the clipboard manager.

The problem with automating BTT itself is that it currently records the windows for itself incorrectly. You can try this path instead:

Application{"BetterTouchTool"} -> AXWindows[0]Window{""} -> AXChildren[0]SplitGroup{""} -> AXChildren[1]TextField{""}

1 Like

Thanks for this. It doesn't work, it is moving the mouse to on the line between the left and middle panels.:

But CMD + F is good enough. Thanks.

1 Like

In 5.406 (uploading) I improved the path recording & element finding logic. It should now work much better hopefully the path now contains more things it can fall back to.

1 Like

Yep, now it is working better for this use-case. Thank you!

1 Like

Hey Andreas,

If I use "Click Button With Name In Active Window/Dialog", which is configured in another trigger, invoked from my original trigger next actions in my initial trigger are not executed. I've tested with a simple "Show HUD overlay" action which is not executed.

It is a bit confusing therefor adding some screenshots:

ps: if I use it like this it is working (all marked in red rectangle will be enabled):