Block left click for one window

@Andreas_Hegenberg I have a CAG that disables the left click when a specific window is in the foreground. This works perfectly. The goal is that I never accidentally click in that particular window... but only in that window. However, the click is actually blocked outside this window as well. I understand the logic, this window is also in front when clicking outside of it.

I guess this cannot be changed?

The problem is CAGs can not monitor things that constantly change for performance reasons. So a hover state can not be tracked using CAGs.

However you can keep your CAG and then add an additional trigger condition on the left-click. In that condition you'd check whether the hovered_element_details contain your window title


//edit: ah sorry, I think you need the condition to be "All" (or any) not "none". Updated my screenshot.

Mm, sorry, I'm probably blind, but I don't see “hovered_element_details”

Edit: Ah, sorry, you mean die Advanced Conditions.

you need to add this as an advanced trigger condition - leave your CAG conditions untouched!

Yes, that works. BTT can really do almost anything :smiley: Thanks Andreas!

Natürlich hätte der user nichts dagegen, wenn alle Bedingungen am gleichen Ort eingestellt werden könnten. Ich vermute diese Abweichungen müssen unter "die Entwicklung der app ist historisch gewachsen" verbucht werden :slight_smile:

In diesem Fall ist es tatsächlich so gewollt und notwendig. Das Problem ist Performance. Über die CAG erreichst du (sehr performant), dass die grobe Bedingung mit dem aktiven Fenster schon abgehandelt ist. Über die ATC erreichst du, dass dann zusätzlich noch eine nicht performante Bedigung geprüft wird - aber nur wenn die CAG schon das grobe erledigt hat. Ansonsten müsste BTT bei jedem Klick den Hover-Status checken und das wäre sehr CPU intensiv

Deshalb enthalten CAGs auch nur Bedingungen die sich quasi ohne CPU Aufwand prüfen lassen.

1 Like

Eine Nachfrage: Könntest du bei den CAG-Bedingungen "wenn Dock sichtbar ist" hinzufügen? Das sollte nicht mehr Performance brauchen als "wenn Clipboard Manager sichtbar" ist, nehme ich an.

Wenn das geht, und du das willst würde mir das helfen :slight_smile: