HWND h;
RECT r1;
POINT p;//x,y
void ONCE()
{
h=::FindWindow(NULL,"biaoti");
::GetWindowRect(h,&r1); //保存当前鼠标指针
//取得当前鼠标位置
GetCursorPos(&p);
//设置鼠标指针位置 取坐标:x=273;y=273 //lparam 0x01110111
SetCursorPos(+r1.left,+r1.top);
//按下
mouse_event(MOUSEEVENTF_LEFTUP,,,,);
mouse_event(MOUSEEVENTF_LEFTDOWN,,,,);
//抬起
mouse_event(MOUSEEVENTF_LEFTUP,,,,);
//还原
Sleep();
SetCursorPos(p.x,p.y);
}
05-26 03:20