Overview active tab


I like to know how i can find what tab is active in overview and extract his name, so in anomaly i could change the tab.
what i know is: the active tab has LabelColorOpacityMilli = 1500 ( the rest have 750).
The name is under label in measurements…
the whole idea is: I extract the name of active tab, compare with another name and change the tab in overview. I have to do that couple times.
I’m totally noob and I don’t know to do that, can you help me?
Thank you


This reminds me of functionality found in the demo mining script included with the Sanderling app:

Can you use that implementation to get the active tab?


yes I saw, but is not what i want. anyway, i will make this way