🟣 C# / .NET 6+

Disable Aero Shake (C#)

Stops shaking a window from minimizing every other open window. Applies the tweak via Microsoft.Win32.Registry.

By WindowsScripting.com · 503 B
SetDisableAeroShake.cs
// SetDisableAeroShake.cs
//
// Disable Aero Shake.
// Stops shaking a window from minimizing every other open window.
//
// Usage: dotnet new console -o SetDisableAeroShake, replace Program.cs with this
// file, then dotnet run.

using System;
using Microsoft.Win32;

using RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced");
key.SetValue("DisallowShaking", 1, RegistryValueKind.DWord);

Console.WriteLine("Disable Aero Shake applied.");