{硬件模拟:会真的移动鼠标}
HWND hwnd;
hwnd = ::FindWindow(NULL,T(""));//类名,窗口名
RECT rect;
::GetWindowRect(hwnd, &rect);
//Spy++获取按钮的相对坐标842,139
SetCursorPos(rect.left+842,rect.top+139);
Sleep(1000);
mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);
mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);