Is there any way to find out that Chart has Focus?

Scenario, I have 3 charts open, and Window Focus is on Chart 2. How do I determine automatically thru code that Chart 2 has focus?
By automatically I mean that I do not wish to run a script or press a button. I want it to be seamless from the backdrop.