Well, I'm not much of a help here, but if your app has an open window you could use an api to find it.