'Enable or Disable Pop Up Descriptions

On Error Resume Next

Dim WshShell, Message, M

Message = "This script will Enable or Disable Pop Up Descriptions." & vbCr _
 & "Don't forget to Refresh the Desktop for this to take effect." & vbCr & vbCr _
 & "Adding information can unintentionally change or delete values and cause components to stop working correctly." _
 & "  If you do not trust the source of this information, do not add it to the registry."  & vbCr  & vbCr _
 & "Would you like to continue?"

M = MsgBox(Message, vbYesNo + vbInformation, "Paul's XP and Vista Tweaks")
If M = 6 Then 

Set WshShell = WScript.CreateObject("WScript.Shell")

X = WshShell.RegRead ( "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowInfoTip" )
If X = 0 Then
WshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowInfoTip", 1, "REG_DWORD"

Message =  "Pop Up Descriptions are now ENABLED!" & vbCr & vbCr _
 & "You must refresh the Desktop for this to take effect." & VbCr & vbCr _
 &  "This script was downloaded from www.paulsxp.com."
MsgBox Message, 64, "Done!"

Else

X = WshShell.RegRead ( "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowInfoTip" )
If X = 1 Then
WshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowInfoTip", 0, "REG_DWORD"

Message = "Pop Up Descriptions are now DISABLED!"  & vbCr & vbCr _
 & "You must refresh the Desktop for this to take effect." & VbCr & vbCr _
 &  "This script was downloaded from www.paulsxp.com."
MsgBox Message, 16, "Done!"
End If
End If
End If


