Is it possible to recognize pressed button by view id?

DonDemon

Active member
There are only "ui click" without "view id" and screen content with it. But now I want to recognize pressed button that are without text. Is it possible? Maybe with some different triggers
 

dhj49er

Well-known member
There are only "ui click" without "view id" and screen content with it. But now I want to recognize pressed button that are without text. Is it possible? Maybe with some different triggers
I use the check pixel colour for icons ( could be buttons as well) that are in a fixed location on the screen.
I find a point in the icon/button where the colour change is significant from icon/button off to on.
The action provides the R, G & B values for the specified x,y location.
I add the R G & B values to provide overall colour as an integer.
The values are typically <200 button off & > 600 for button on, but these will depend on the applied theme.
I use a value of 400 to determine the button state from the overall colour value value.

I use this approach on a few quick setting icons when I need to know the state either before toggling or after toggling to confirm the change.

This may not be your use case, but the approach might be of interest.
 
Top