using System.Runtime.InteropServices;
//在 类中 引入dll
[DllImport("user32.dll", EntryPoint = "SetCursorPos")]
private static extern int SetCursorPos(int x, int y);
private void attachToolStripMenuItem_Click(object sender, EventArgs e)
{
SetCursorPos(100,100);
}