Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 

Sign in to follow this  
wazer

Refreshing windows 7 toolbar/systray

Recommended Posts

wazer    1

Hello has anyone succeded in refreshing the taskbar on windows 7.

I know you can manipulate the explorer.exe and restart it, but thats not an option, people may loose loads of stuff when doing this fix on their computers. I need a legal and nice way to refresh explorer.exe or the taskar/systray.

example.

I wanna add this reg

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\CTF\LangBar]
"ExtraIconsOnMinimized"=dword:00000000
"ShowStatus"=dword:00000003

[HKEY_CURRENT_USER\Software\Microsoft\CTF\MSUTB]
"ShowDeskBand"=dword:00000000

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
"ctfmon.exe"=-

This will remove the language bar from the botton of the taskbar/systray, but you need to restart/logout of windows or do the dirty hack(killing explorer) before it applys to users.

Edited by wazer

Share this post


Link to post
Share on other sites
wakillon    0

For just refresh try this :


#NoTrayIcon
#include <Array.au3>

_UpdateExplorer ( )

Func _UpdateExplorer ( )
Local $_WinOpt = Opt ( "WinSearchChildren", True ), $_PARAM = 107040
If @OSVersion = "WIN_XP" Then $_PARAM = 28931
$_WinListArray = WinList ( "[REGEXPCLASS:(Explore|Cabinet)WClass]" )
For $_I = 0 To UBound ( $_WinListArray ) - 1
DllCall ( "user32.dll", "long" , "SendMessage", "hwnd", $_WinListArray[$_I][1], "int", 0x111, "int" , $_PARAM , "int" , 0 )
Next
$_WinListArray = WinList ( "[REGEXPCLASS:(Progman|#32770|SHELLDLL_DefView)]" )
For $_I = 0 To UBound ( $_WinListArray ) - 1
DllCall ( "user32.dll", "long" , "SendMessage", "hwnd", $_WinListArray[$_I][1], "int", 0x111, "int" , $_PARAM , "int" , 0 )
Next
EndFunc ;==> _UpdateExplorer ( )

But you need to restart explorer for apply your changes like here

Edited by wakillon

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×