🐍 Python 3.10+
Check "Disable Balloon Tip Notifications" Status (Python)
Reads the registry value behind the "Disable Balloon Tip Notifications" tweak via winreg to confirm whether it's applied.
check_disable_balloon_tips_status.py
#!/usr/bin/env python3
"""
check_disable_balloon_tips_status.py
Checks whether "Disable Balloon Tip Notifications" is currently applied.
Usage:
python check_disable_balloon_tips_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, "EnableBalloonTips")
winreg.CloseKey(key)
print(f"Current value of 'EnableBalloonTips': {value}")
except FileNotFoundError:
print("'EnableBalloonTips' is not set (using the Windows default).")
if __name__ == "__main__":
main()