-
个人简介
到头来,
我们记住的,
不是敌人的攻击,
而是朋友的沉默。
——马丁·路德·金
qq号:3636555492
请勿添加#include <bits/stdc++.h>//连点器 #include <windows.h> using namespace std; string op="?"; int start_time,sleep_time; int main(){ printf("左:left 右:right\n"); printf("请输入连点类型:\n"); cin>>op; while(op!="left"&&op!="right"){ printf("您输入的字符串不正确,字符串仅可为left或right\n"); cin>>op; } printf("请输入连点间隔(单位:毫秒):\n"); scanf("%d",&sleep_time); printf("请输入开始时间(单位:毫秒):\n"); scanf("%d",&start_time); printf("OK,将在%.3lf秒后开始连点\n请注意:想要停止连点可以按ESC退出\n",(double)start_time/1000); Sleep(start_time); if(op=="left"){ while(1){ mouse_event(MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP,0,0,0,0); Sleep(sleep_time); if(GetAsyncKeyState(VK_ESCAPE)){ break; } } } if(op=="right"){ while(1){ mouse_event(MOUSEEVENTF_RIGHTDOWN | MOUSEEVENTF_RIGHTUP,0,0,0,0); Sleep(sleep_time); if(GetAsyncKeyState(VK_ESCAPE)){ break; } } } }
您是第 个吊打本蒟蒻的神犇
每日一诗
-
通过的题目
-
最近活动
This person is lazy and didn't join any contests or homework. -
最近编写的题解
This person is lazy and didn't write any solutions.