1894
浏览[DllImport("user32.dll")]
static extern IntPtr WindowFromPoint(Point Point);
[DllImport("user32.dll")]
static extern bool GetCursorPos(out Point lpPoint);
[DllImport("user32.dll")]
static extern int SetCursorPos(int x, int y);
Point p;
if (GetCursorPos(out p)) {
text=p.X + "." + p.Y; //返回鼠标位置坐标
}
Text = WindowFromPoint(p).ToString (); //返回坐标处的句柄
SetCursorPos(0,0); //设置鼠标坐标