# include <windows.h>
# include <stdio.h>
int main(void)
{
int x,y;
while(1)//死循環
{
x = rand()%801;//隨機數
y = rand()%601;//隨機數
SetCursorPos(x,y);//鼠標移到屏幕的指定位置
}
return 0 ;
}
//效果:鼠標亂抖
SetCursorPos_360百科 https://baike.so.com/doc/5903599-6116500.html