In general, I need to make it so that a button is pressed in another application. Tried to catch the handler through FindWindow (); and do SendMessage (); on this handler - did not work.
switch (uMessage) { case WM_DESTROY: PostQuitMessage(0); break; case WM_KEYDOWN: if (wParam == VK_RETURN) { hCalc = FindWindow(NULL, L"Window"); HWND wnd; wnd = FindWindowEx(hCalc , 0, 0, L"Start"); } SendMessage(wnd, WM_LBUTTONUP, 0, 0); }