As Chinthan said, there is no current Personas feature to detect if a screen object is greyed out or inactive.
About the only thing you could do is have a WebRFC that determines the state of the object and consider that in your script. I realize that in many cases this would be cumbersome or even not really feasible without a lot of coding, but it depends on the actual scenario how much pain it is to do something like this.