/// <summary> /// 指定窗口句柄瞬移 /// </summary> /// <param name="dm"></param> /// <param name="hwnd"></param> /// <param name="point"></param> /// <returns></returns> private bool TeleportByHwnd(DmPlugin dm, int hwnd, Point point) { int a = dm.WriteFloat(hwnd, "[1221740]+a5c", point.X); int b = dm.WriteFloat(hwnd, "[1221740]+a64", point.Y); int c = dm.WriteFloat(hwnd, "[1221740]+a60", point.Z); if (a == 1 && b == 1 && c == 1) { return(true); } else { Debug.WriteLine("瞬移失败,写入X:{0},Y:{1},Z:{2},句柄:{3}", a, b, c, hwnd); return(false); } }