public void ResizeWindow(int width, int height, bool fixedSize = false) { if (fixedSize) { int nIndex = -16; long num = (long)AutoSpy.GetWindowLong(this.Handle, nIndex); num &= -13303809L; AutoSpy.SetWindowLong(this.Handle, nIndex, (int)num); } AutoSpy.SetWindowPos(this.Handle, IntPtr.Zero, 0, 0, width, height, 2u); }
public void Opacity(int value) { AutoSpy.SetWindowLong(this.Handle, -20, AutoSpy.GetWindowLong(this.Handle, -20) ^ 524288); AutoSpy.SetLayeredWindowAttributes(this.Handle, 0u, (byte)value, 2u); }