I'm sure this is possible somehow, but not sure if there are a few too many hoops to jump through to make it worthwhile, hoping someone might point me in the right direction. I've got a problem (related to an installer) whereby I have a dialog popup quite regularly which I need to press cancel on.
What I'd like to do is close it programatically/maybe via a service so it stops getting in my way (assuming I can't fix the root issue). So, what I'm wondering is if there is a way to grab a handle to the window somehow (checking it's correct maybe by doing a text comparison on the label), then locating a control on the window (cancel button) and sending an event to it?
If anyone knows how I might achieve this or some starters that'd be great.