clearone.h
资源名称:ddp2_wg.rar [点击查看]
上传用户:asdl8888
上传日期:2022-05-12
资源大小:1858k
文件大小:0k
源码类别:
外挂编程
开发平台:
Visual C++
- #include <windows.h>
- void clearone(POINT pa,POINT pb)
- {
- HWND gameh;
- POINT p1,p2;
- p1.x=291+48*pa.x;p1.y=116+48*pa.y;
- p2.x=291+48*pb.x;p2.y=116+48*pb.y;
- LPARAM lparam1=MAKELONG(p1.x,p1.y);
- gameh = ::FindWindow(NULL,"对对碰角色版");
- ::SendMessage(gameh,WM_LBUTTONDOWN,0,lparam1);
- ::SendMessage(gameh,WM_LBUTTONUP,0,lparam1);
- //
- //Sleep (100);
- LPARAM lparam2=MAKELONG(p2.x,p2.y);
- ::SendMessage(gameh,WM_LBUTTONDOWN,0,lparam2);
- ::SendMessage(gameh,WM_LBUTTONUP,0,lparam2);
- }