/// <summary> /// 移动窗口 /// </summary> /// <param name="x">窗口左上角X坐标</param> /// <param name="y">窗口左上角Y坐标</param> /// <returns>移动是否成功</returns> public bool Move(int x, int y) { if (!IsAlive) { return false; } Dm.MoveWindow(_hwnd, x, y); Dm.Delay(500); Tuple<int, int, int, int> rect = Rect; return rect.Item1 == x && rect.Item2 == y; }