🐍 Python 3.10+
Check "Disable Snap Assist Suggestions" Status (Python)
Reads the registry value behind the "Disable Snap Assist Suggestions" tweak via winreg to confirm whether it's applied.
check_disable_snap_assist_status.py
#!/usr/bin/env python3
"""
check_disable_snap_assist_status.py
Checks whether "Disable Snap Assist Suggestions" is currently applied.
Usage:
python check_disable_snap_assist_status.py
"""
import winreg
def main() -> None:
try:
key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, r"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced")
value, _ = winreg.QueryValueEx(key, "SnapAssist")
winreg.CloseKey(key)
print(f"Current value of 'SnapAssist': {value}")
except FileNotFoundError:
print("'SnapAssist' is not set (using the Windows default).")
if __name__ == "__main__":
main()