C++为什么模拟鼠标点击不起来???
CRectrect;::GetClientRect(hwnd,&rect);ClientToScreen(rect);intx=rect.left+314;inty=re...
CRect rect;
::GetClientRect(hwnd,&rect);
ClientToScreen(rect);
int x = rect.left+314;
int y = rect.top+84;
::SendMessage(hwnd,WM_LBUTTONDOWN,0,MAKELONG(x,y));
Sleep(50);
::SendMessage(hwnd,WM_LBUTTONUP,0,MAKELONG(x,y)); 展开
::GetClientRect(hwnd,&rect);
ClientToScreen(rect);
int x = rect.left+314;
int y = rect.top+84;
::SendMessage(hwnd,WM_LBUTTONDOWN,0,MAKELONG(x,y));
Sleep(50);
::SendMessage(hwnd,WM_LBUTTONUP,0,MAKELONG(x,y)); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询