想坐标移位点击计算器内的数字随便一个都好,为什么计算器一点反应都没有,有大佬知道不?
#include<stdlib.h>#include<windows.h>
#include<stdio.h>
int main(int argc, char* argv[])
{
HWND hwnd= FindWindow(NULL, "计算器");
WPARAM wParam = MK_LBUTTON;
LPARAM lParam = MAKELONG(150, 150);
SendMessage(hwnd, WM_LBUTTONDOWN, wParam, lParam);
Sleep(500);
SendMessage(hwnd, WM_LBUTTONUP, wParam, lParam);
return 0;
}