I\'m trying to use the following code to press a button on my other application:
HWND ButtonHandle;
if( (wnd = FindWindow(0, \"Do you want to save?\")) )
{
Microsoft is now pushing Active Accessibility (MSAA) for UI Automation, (It has been renamed a number of times over the years) see
Sorry I don’t have any simple code to get you started. As “SendMessage()” does not seem to be working for you, I don’t know of another option apart from “UI Automation”
I am assuming you have check with Spy++ (installed with MsDev) that you message are being send to the correct button etc – and that the button is a standard windows buttons. My first instant would say use “SendMessage()" or "PostMessage()” but given the numbers of answers about “SendMessage()” and the fact it is not working for you. I expect someone is going on…