[DllImport("User32")] public extern static void SetCursorPos(int x, int y);//声明外部函数,移动到x,y位置 [DllImport("User32")] public extern static bool GetCursorPos(ref Point lpPoint);//获取当前鼠标位置信息
[DllImport("User32")] public extern static void SetCursorPos(int x, int y);//声明外部函数,移动到x,y位置 [DllImport("User32")] public extern static bool GetCursorPos(ref Point lpPoint);//获取当前鼠标位置信息