đź“„ JScript (WSH)

Disable Snap Assist Suggestions (JScript)

Stops Windows from suggesting other windows to snap next to one you just moved. Applies the tweak via WScript.Shell.RegWrite (JScript syntax).

By WindowsScripting.com · 647 B
SetDisableSnapAssist.js
// ============================================================
// SetDisableSnapAssist.js
//
// Disable Snap Assist Suggestions.
// Stops Windows from suggesting other windows to snap next to one you just moved.
//
// Usage: cscript SetDisableSnapAssist.js
// ============================================================

var objShell = WScript.CreateObject("WScript.Shell");

try {
    objShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\SnapAssist", 0, "REG_DWORD");
    WScript.Echo("Disable Snap Assist Suggestions applied.");
} catch (e) {
    WScript.Echo("Failed to apply tweak: " + e.description);
}