摘要:
a、取得窗口相对坐标b、读出游戏窗口信息GetWindowRectc、移动鼠标指针SetCursorPos HWND gameh;//游戏窗口句柄RECT r1;//RECT结构表示一个矩形区域void CFewDlg::OnStartGame(){ gameh=::FindWindow(NULL,"井字棋"); ::GetWindowRect(gameh,&r1); this->m_x=r1.left; this->m_y=r1.top; UpdateData(false);//显示到编辑框 SetCursorPos(655+r1.left,577+r 阅读全文