摘要:
.Net封装好的方法int x = Control.MousePosition.X;int y = Control.MousePosition.Y;用API方法using System.Runtime.InteropServices;Point p;[DllImport("user32.dll")]public static extern bool GetCursorPos(out Point pt);private void timer1_Tick(object sender, EventArgs e){ GetCursorPos(out p); label1.Text 阅读全文