Point p = new Point(Screen.PrimaryScreen.WorkingArea.Width / 2, Screen.PrimaryScreen.WorkingArea.Height / 2);
Cursor.Position = p;

(测试成功)

或者

Cursor.Position = new Point(Screen.PrimaryScreen.WorkingArea.Width / 2, Screen.PrimaryScreen.WorkingArea.Height / 2);

END
本文作者:
文章标题:C# 获得当前鼠标的屏幕中间坐标(c#)
本文地址:https://blog.snwl0311.cn/index.php/archives/306/
版权说明:若无注明,本文皆薄·客原创,转载请保留文章出处。
Last modification:June 10, 2022
有钱的给钱,没钱的点赞哦,感谢哥哥姐姐厚爱!