SetCursorPos(x,y);
头文件:windows.h
x和y是要改变的坐标
鼠标乱跳
#include<bits/stdc++.h>
#include<windows.h>
int main(){
srand(time(0));
while(1) SetCursorPos(rand()%1000+300,rand()%600+300);
}
鼠标锁定只要把随机数改成定值即可
#include<windows.h>//浓缩一下
int main(){while(1){SetCursorPos(0,0);}}