Notification Area

G

Guest

Is there any way to delete Past Items in the Notification Area(Customize
Notification Icons)? I had a VBScript I used with XP which doesn't work with
Vista.
 
S

Saucy

spjr2 said:
Is there any way to delete Past Items in the Notification Area(Customize
Notification Icons)? I had a VBScript I used with XP which doesn't work
with
Vista.


Right-click on the Taskbar > select Properties > Notification Area tab >
check the "Hide inactive icons" checkbox > click the "Customize" button >
customize your Notification Area:

You can set any icon to:

Show
Hide
Hide when inactive

and Default setting.

Click OK


Saucy
 
J

Jon

spjr2 said:
Is there any way to delete Past Items in the Notification Area(Customize
Notification Icons)? I had a VBScript I used with XP which doesn't work
with
Vista.

If you post in your current script (right-click > edit), then I'll show you
what needs changing (when I'm next in).
 
G

Guest

spjr2 - Go to "howtogeek.com" homepage; find Windows Vista on the right;
scroll down to "Tips and Tweaks"; find " Clean Up Past Notification Icons in
Windows " and go from there.
It works, but they start building up again so keep this tip handy. Wayne
 
G

Guest

I got this from another site (kellys-korner)
'xp_pastitems.vbs - Remove Past Items from the System Tray
'Based on fixes by Doug Knox and Kelly Theriot.
'© Doug Knox and Kelly Theriot - 8/23/2003

Message = "To work correctly, the script will close" & vbCR
Message = Message & "and restart the Windows Explorer shell." & vbCR
Message = Message & "This will not harm your system." & vbCR & vbCR
Message = Message & "Continue?"

X = MsgBox(Message, vbYesNo, "Notice")

If X = 6 Then

On Error Resume Next

Set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.RegDelete
"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\TrayNotify\IconStreams"
WshShell.RegDelete
"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\TrayNotify\PastIconsStream"

Set WshShell = Nothing

On Error GoTo 0

For Each Process in GetObject("winmgmts:"). _
ExecQuery ("select * from Win32_Process where name='explorer.exe'")
Process.terminate(0)
Next

MsgBox "Finished." & vbcr & vbcr & "© Doug Knox and Kelly Theriot", 4096,
"Done"

Else

MsgBox "No changes were made to your system." & vbcr & vbcr & "© Doug Knox
and Kelly Theriot", 4096, "User Cancelled"

End If
 
J

Jon

spjr2 said:
I got this from another site (kellys-korner)
'xp_pastitems.vbs - Remove Past Items from the System Tray
'Based on fixes by Doug Knox and Kelly Theriot.
'© Doug Knox and Kelly Theriot - 8/23/2003

Message = "To work correctly, the script will close" & vbCR
Message = Message & "and restart the Windows Explorer shell." & vbCR
Message = Message & "This will not harm your system." & vbCR & vbCR
Message = Message & "Continue?"

X = MsgBox(Message, vbYesNo, "Notice")

If X = 6 Then

On Error Resume Next

Set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.RegDelete
"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\TrayNotify\IconStreams"
WshShell.RegDelete
"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\TrayNotify\PastIconsStream"

Set WshShell = Nothing

On Error GoTo 0

For Each Process in GetObject("winmgmts:"). _
ExecQuery ("select * from Win32_Process where name='explorer.exe'")
Process.terminate(0)
Next

MsgBox "Finished." & vbcr & vbcr & "© Doug Knox and Kelly Theriot", 4096,
"Done"

Else

MsgBox "No changes were made to your system." & vbcr & vbcr & "© Doug Knox
and Kelly Theriot", 4096, "User Cancelled"

End If





Looks fine. The only change with Vista is that the registry locations have
now changed. So if you wanted to use the same script then you'd just need to
update these 2 lines to point to the new locations

WshShell.RegDelete
"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\TrayNotify\IconStreams"
WshShell.RegDelete
"HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\TrayNotify\PastIconsStream"


ie

WshShell.RegDelete "HKEY_CURRENT_USER\Software\Classes\Local
Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify\IconStreams"

WshShell.RegDelete "HKEY_CURRENT_USER\Software\Classes\Local
Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify\PastIconsStream"



adjusted of course for Windows Mail wordwrap and indent markers ;-)

You can also use 'HKCU' instead of 'HKEY_CURRENT_USER' if you like.
 
G

Guest

spjr2 said:
Is there any way to delete Past Items in the Notification Area(Customize
Notification Icons)? I had a VBScript I used with XP which doesn't work with
Vista.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top