闲着没事写的,玩猫国建设者的时候可以用,不过会判断作弊qwq ```cpp #include #include using namespace std; int x; int main() { system("mode con cols=40 lines=15"); SetWindowPos(GetConsoleWindow(),HWND_TOPMOST,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE); cout<<"How many clicks per second? "; scanf("%d",&x); x=1000/max(x,1); cout<<"Press F8 to start or end,press F7 to change the speed.\n"; while(1) { if(GetAsyncKeyState(VK_F8)) { printf("start\n"); Sleep(500); while(1) { mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0); Sleep(x); if(GetAsyncKeyState(VK_F7)) { cout<<"end\n"; break; } if(GetAsyncKeyState(VK_F8)) { cout<<"end\n"; Sleep(500); break; } } } if(GetAsyncKeyState(VK_F7)) { cout<<"How many clicks per second? "; cin>>x; x=1000/max(x,1); } } return 0; } ``` Loading... 闲着没事写的,玩猫国建设者的时候可以用,不过会判断作弊qwq ```cpp #include<bits/stdc++.h> #include<windows.h> using namespace std; int x; int main() { system("mode con cols=40 lines=15"); SetWindowPos(GetConsoleWindow(),HWND_TOPMOST,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE); cout<<"How many clicks per second? "; scanf("%d",&x); x=1000/max(x,1); cout<<"Press F8 to start or end,press F7 to change the speed.\n"; while(1) { if(GetAsyncKeyState(VK_F8)) { printf("start\n"); Sleep(500); while(1) { mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0); Sleep(x); if(GetAsyncKeyState(VK_F7)) { cout<<"end\n"; break; } if(GetAsyncKeyState(VK_F8)) { cout<<"end\n"; Sleep(500); break; } } } if(GetAsyncKeyState(VK_F7)) { cout<<"How many clicks per second? "; cin>>x; x=1000/max(x,1); } } return 0; } ``` 最后修改:2025 年 07 月 02 日 © 允许规范转载 赞 如果觉得我的文章对你有用,请随意赞赏