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?\")) ) {
Update: I believe this should work,
SendMessage(ButtonHandle, BM_CLICK, 0, 0);