clearone.h
上传用户:asdl8888
上传日期:2022-05-12
资源大小:1858k
文件大小:0k
源码类别:

外挂编程

开发平台:

Visual C++

  1. #include <windows.h>
  2. void clearone(POINT pa,POINT pb)
  3. {
  4. HWND gameh;
  5. POINT p1,p2;
  6. p1.x=291+48*pa.x;p1.y=116+48*pa.y;
  7. p2.x=291+48*pb.x;p2.y=116+48*pb.y;
  8. LPARAM lparam1=MAKELONG(p1.x,p1.y);
  9. gameh = ::FindWindow(NULL,"对对碰角色版");
  10. ::SendMessage(gameh,WM_LBUTTONDOWN,0,lparam1);
  11. ::SendMessage(gameh,WM_LBUTTONUP,0,lparam1);
  12. //
  13. //Sleep (100);
  14. LPARAM lparam2=MAKELONG(p2.x,p2.y);
  15. ::SendMessage(gameh,WM_LBUTTONDOWN,0,lparam2);
  16. ::SendMessage(gameh,WM_LBUTTONUP,0,lparam2);
  17. }