#include<stdio.h>
#include<windows.h>
int main() {
while(true) {
//按下空格开始
if(GetAsyncKeyState(VK_SPACE)) {
while(true) {
mouse_event(MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);//当前位置点击鼠标
Sleep(500);//每0.5秒点击一次
if(GetAsyncKeyState(VK_ESCAPE)) return 0; //按esc退出
}
}
}
return 0;
}
09-11
1487
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-17
3098
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)