重写鼠标自动移动

[DllImport("User32.dll")]
private static extern bool SetCursorPos(int x, int y);   

 

private void timer2_Tick(object sender, EventArgs e)
{

  SetCursorPos(blist[bi].Location.X + 50, blist[bi].Location.Y + 200);


}

你可能感兴趣的:(重写鼠标自动移动)