连点器(修改)
2026-08-13 18:32:37
发布于:广东
由粉碎机粉碎粉碎机改;
#include <windows.h>
#include <bits/stdc++.h>
using namespace std;
void ClickL() {
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
}
void ClickR() {
mouse_event(MOUSEEVENTF_RIGHTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0);
}
int delay = 1;//改这里
int main() {
cout << "连点器 - 按住R、G键开始/停止连点,A键退出, R:左键;G:右键" << endl;
while(1){
system("color a");
bool Lflag = 0, Rflag = 0;
while (true) {
if (GetAsyncKeyState('R') & 0x8000) {
Lflag = !Lflag;
Beep(1000, 200);
}
if (GetAsyncKeyState('G') & 0x8000) {
Rflag = !Rflag;
Beep(1000, 200);
}
if (Lflag) {
ClickL();
Sleep(delay);
}
if (Rflag) {
ClickR();
Sleep(delay);
}
if (GetAsyncKeyState('A') & 0x8000) {
break;
}
}
}
return 0;
}
这里空空如也





















有帮助,赞一个