/*
CPoint pt;
GetCursorPos(&pt);//获取鼠标在屏幕的当前位置
mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);//点下左键
mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);//松开左键
*/
CString str;
if ((hWndParent = ::FindWindow(NULL, _T("G+ Mass Production Tool(Patch1) 2.1.1"))) != NULL)
{
if ((hWndChild = ::FindWindowEx(hWndParent, NULL, "Button", "Start &Download")) != NULL)
{
::SendMessage(hWndChild, WM_LBUTTONDOWN, 0, 0);
::SendMessage(hWndChild, WM_LBUTTONUP, 0, 0);
}
else
{
str = "查找 Start Download 按钮失败!";
m_sNote.SetWindowText(str);
return FALSE;
}
}
else
{
str = "查找 G+ Mass Production Tool(Patch1) 2.1.1窗口失败!";
m_sNote.SetWindowText(str);
return FALSE;
}
return TRUE;