From anonymous, 6 Years ago, written in Python.
Embed
  1. import winreg
  2.  
  3. def disable():
  4.     with winreg.OpenKey(winreg.HKEY_CURRENT_USER,
  5.              r'Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced',
  6.              access=winreg.KEY_WRITE) as key:
  7.         try:
  8.             winreg.SetValueEx(key, 'EnableBalloonTips', None,
  9.                               winreg.REG_DWORD, 0)
  10.         except OSError as e:
  11.             print("ERROR: There was an error while turning off tooltips:")
  12.             print(e)
  13.             return False
  14.     print("Turned off tooltips successfully!")
  15.     return True