Focused element sometimes not changed in Conditional Activation Group

Describe the bug
Sometimes the Focused Element Role changing and it shows in the Focused UI Element Inspector, it doesn't changed in Conditional Activation Group.
You can check my 2 screenshot and 2 videos.

Affected input device (e.g. MacBook Trackpad, Magic Mouse/Trackpad, Touch Bar, etc.):
External mouse

Screenshots
If applicable, add screenshots to help explain your problem. (You can just paste or drag them here)




Device information:

  • Type of Mac: MacBook Pro M4 16"
  • macOS version: 15.3.1
  • BetterTouchTool version: 5.255 (latest)

I am only reproducing what I have heard. So I don't know if this will help you. BTT gets information about text fields from an app. This does not always work equally well.

BTT can also ask itself which field is active. Activate the box below. As far as I know, the default interval is 2 seconds. However, it can be freely selected with a terminal command. Unfortunately I can't remember this command. The shorter the interval, the more cpu it needs. Something like that. :slightly_smiling_face:

Thanks for your replay.
I tried the Poll AX Attributes but it doesn't helped my issue.

In the early version it worked well. About in December 2024. Some 4.x, but not the latest versions.

I think there might have been a potential display issue that caused the variable value display to not update, should be resolved in 5.256

2 Likes

Thanks for your quick replay. Unfortunately the issue is still here, but maybe a little bit less often.

mhm it seems to work fine here after the update, however it doesn't work with all apps. This relies on the app sending the appropriate change notifications - especially hybrid or electron applications don't always do that. In that case try to enable the checkbox @Frank1 mentioned.

I tried the checkbox that @Frank1 mentioned, but it didn't help.
The interesting thing the Focused UI Element Inspector shows the UI element changes correctly. Only the Conditional Activation Group doesn't know it. I think in this case the app send it, otherwise the Focused UI Element Inspector wouldn't know either.
I will search an exact use case for you.

The focused ui element viewer actively polls (which is quite expensive). The focused element role variables are refreshed lazily based on the system notification to reduce CPU impact