C# 获得当前鼠标的屏幕中间坐标(c#)

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);

展开阅读全文

没有更多推荐了,返回首页