CSDN博客

img foart

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

发表于2008/10/3 12:20:00  2329人阅读

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

0 0

相关博文

我的热门文章

img
取 消
img