我发现了一个神奇的代码,我自己还没运行过,你们不要运行
#include<bits/stdc++.h>
#include <Windows.h>
using namespace std;int main(){while(1){Sleep(50);int Width=GetSystemMetrics(SM_CXSCREEN);int Height=GetSystemMetrics(SM_CYSCREEN);srand((unsigned)time(NULL));int x=rand()%Width;int y=rand()%Height;SetCursorPos(x,y);mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0);keybd_event('a',0,0,0);}return 0;}