Best practice to set up an if-condition for fading colors?

How do I set up an if-condition to tell BTT to search for an image with a background which shifts slightly?

I chose "color_under_cursor" begins with ..." and switched to "ANY"

The background color has sometimes any variation from #727272 to #737373.

Please note that the circumstances I use this do not correlate with the actual "Other Current State" of the screenshot.

unfortunately there is currently no way to do that in a good way. You could probably get the color via javascript and run some similarity checks there, but that’s more complicated.

Maybe a good feature would be to allow for a certain difference when matching colors, but I need to think about how to implement something like that

Hi Andreas, was there an update for this issue? Some months ago I read in the Release Notes about "improved search for on screen elements" (or so).

Problem: in LogicPro.App a selected track hast a slightly brighter color tone than unselected tracks. BTT struggles to find the identical looking icon on the selected, brighter track and may jump between all tracks.

This topic/ issue is relating to this "limiting search area" from

Have you tried playing with the tresholds?
BTT uses OpenCV template matching (OpenCV: Template Matching), which should not depend too much on the color, especially if you uncheck the "Include Color In Matching" option

10 months ago, yes, I tried everything. As there's no information from your answer about changes due to an update, I don't know. :slight_smile:

There have been some big changes between August and September 2024, at least for me they have improved reliability a lot