My problem is this, I have a program running (not written by me) that opens a requester where I have to answer Ok or Cancel when closing the program. So I need some code to automatically choose Ok whenever the program opens that requester.
The problem? Sometimes the default is Ok and othertimes it's Cancel, so I can't just use PostMessage_ with #VK_Return. The requester doesnt have any keyboard shortcuts either..
Does anyone have any good ideas?
I was thinking along the lines of getting the handle of the gadget with the text Ok, but I have no idea how to enumerate gadgets in a window and could really use an example on this in that case!
I would really appreciate some help! This is driving me nuts



