跳到正文

科技·工程

鼠标连点器

jasonsu123约 1 分钟
原文
文章信息与版本

文章信息

发布
2024年8月1日
收录
2026年8月18日
更新
2026年10月26日
篇幅
约 1 分钟
获赞
2

版本

  1. v1当前
C++
#include<iostream>
#include<cstdio>
#include<cmath>
#include<cstring>
#include<string>
#include<map>
#include<algorithm>
#include<stack>
#include<queue>
#include<vector>
#include <windows.h>
using namespace std;
#define ll long long
const int N=1e5+10;
const int INF=0x3f3f3f3f;
signed main(){
	//要长按 
	//priority_queue<int,vector<int>,greater<int> >q;
	//freopen("newyear.txt","w",stdout);
	while(1){
		if(GetAsyncKeyState('0'/* 按下的连点键*/)){
			mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);//模拟按下 
			Sleep(1);//不然会爆 
    		mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);//模拟弹出 
    		Sleep(1);
		}
		
		
	}
	return 0;
}