I'm sure this is possible somehow, but not sure if there are too many hoops to jump to make it worthwhile, hoping that someone can point me in the right direction. I have a problem (related to the installer) in which I have a pop-up dialog box pretty regularly that I need to click cancel.
What I would like to do is close it programmatically / possibly through a service so that it does not bother me (provided that I cannot fix the root problem). So, I am wondering if there is a way to capture the window handle in any way (check it, perhaps by comparing the text on the label), then find the control in the window (cancel button) and send the event to it?
If anyone knows how I could achieve this or a few starters that would be good.
source
share