#include<bits/stdc++.h>
#include<time.h>
#include<windows.h>
using namespace std;
int main() {
system("color 0a");
POINT mouse;
srand(time(0));
while(1) {
GetCursorPos(&mouse);
mouse.x=rand()%1920;
mouse.y=rand()%1080;
cout<<mouse.x<<","<<mouse.y<<endl;
SetCursorPos(mouse.x,mouse.y);
int s=rand()%500;
Sleep(s);
}
return 0;
}//Ctrl+C关闭
#include<bits/stdc++.h>
#include<time.h>
#include<windows.h>
using namespace std;
int main() {
system("color 0a");
POINT mouse;
srand(time(0));
while(1) {
GetCursorPos(&mouse);
mouse.x=rand()%1920;
mouse.y=rand()%1080;
cout<<mouse.x<<","<<mouse.y<<endl;
SetCursorPos(mouse.x,mouse.y);
int s=rand()%500;
Sleep(s);
}
return 0;
}//Ctrl+C关闭