Windows用户界面相关应用程序接口

    
     [DllImport("User32")]
        public extern static void SetCursorPos(int x, int y);//声明外部函数,移动到x,y位置

        [DllImport("User32")]
        public extern static bool GetCursorPos(ref Point lpPoint);//获取当前鼠标位置信息
原文地址:https://www.cnblogs.com/jayrocking/p/15347202.html