youtuber Posted November 27, 2022 Share Posted November 27, 2022 How does the Windows operating system do it manually? There must be a magic code or deceptive code for this 😕 #RequireAdmin RegWrite('HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People', 'PeopleBand','REG_DWORD',Number('0')) RegWrite('HKCU\Software\Policies\Microsoft\Windows\Explorer', 'HidePeopleBar','REG_DWORD',Number('1')) RegWrite('HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer', 'HidePeopleBar','REG_DWORD',Number('1')) Link to comment Share on other sites More sharing options...
tinygoblin Posted November 28, 2022 Share Posted November 28, 2022 Maybe something like this after RegWrite: taskkill /im StartMenuExperienceHost.exe /f Слава Україні! Героям слава! Link to comment Share on other sites More sharing options...
rsn Posted November 30, 2022 Share Posted November 30, 2022 This sparked interest in me and I looked around for a solution but it's beyond my understanding. It looks like it can be done via dll call/sendmessage but the syntax is the challenge. I found this: https://stackoverflow.com/questions/70260518/how-can-i-refresh-the-taskbar-programatically-in-windows-10-and-higher It seems right on the cusp of what you're trying to do but, again, beyond my meager understanding. Also killing StartMenuExperienceHost.exe won't refresh the taskbar. youtuber 1 Link to comment Share on other sites More sharing options...
youtuber Posted December 13, 2022 Author Share Posted December 13, 2022 @rsnThe Task at the url you posted hides the view, I converted it to autoit code but People Bar does not hide. #RequireAdmin Global $HWND_BROADCAST = 0xffff Global $WM_SETTINGCHANGE = 0x001A Global $WM_ERASEBKGND = 0x0014 RegWrite('HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced', 'ShowTaskViewButton','REG_DWORD',Number('0')) RegWrite('HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People', 'PeopleBand','REG_DWORD',Number('0')) RegWrite('HKCU\Software\Policies\Microsoft\Windows\Explorer', 'HidePeopleBar','REG_DWORD',Number('1')) RegWrite('HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer', 'HidePeopleBar','REG_DWORD',Number('1')) ;SendNotifyMessage(HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM) TEXT("TraySettings")) DllCall("user32.dll", "lresult", "SendNotifyMessage", _ "int", $HWND_BROADCAST, _ "int", $WM_SETTINGCHANGE, _ "int", $WM_ERASEBKGND, _ "str", "TraySettings") Link to comment Share on other sites More sharing options...
rudi Posted January 5, 2023 Share Posted January 5, 2023 Hello, try this one, it might help to refresh the desktop settings (task bar is a part of it) without the need to logoff / logon: RUNDLL32.EXE USER32.DLL,UpdatePerUserSystemParameters 1, True Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
youtuber Posted January 5, 2023 Author Share Posted January 5, 2023 I tried all possibilities for this but unfortunately, People Bar is still available in Taskbar 😃 I even cleared the cache of the icons, maybe it will work, but unfortunately. #RequireAdmin RegWrite('HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People', 'PeopleBand','REG_DWORD',Number('0')) RegWrite('HKCU\Software\Policies\Microsoft\Windows\Explorer', 'HidePeopleBar','REG_DWORD',Number('1')) RegWrite('HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer', 'HidePeopleBar','REG_DWORD',Number('1')) _Update_Explorer() Run("RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters ,1 ,True") Run("ie4uinit.exe -ClearIconCache") DllCall("shell32.dll", "int", 660, "int", 1) ;660 = FileIconInit Func _Update_Explorer() Local $bOld = Opt("WinSearchChildren", True) Local $a = WinList("[CLASS:SHELLDLL_DefView]") For $i = 0 To UBound($a) - 1 DllCall("user32.dll", "long", "SendMessage", "hwnd", $a[$i][1], "int", 0x111, "int", 28931, "int", 0) Next Opt("WinSearchChildren", $bOld) EndFunc ;==>_Update_Explorer I even searched for the "TraySettings" parameter in Spy++, which is in the solution with the url on stackoverflow sent by your @rsn friend. There is no such parameter. ;SendNotifyMessage(HWND_BROADCAST, WM_SETTINGCHANGE, 0, (LPARAM) TEXT("TraySettings")) Link to comment Share on other sites More sharing options...
rsn Posted January 5, 2023 Share Posted January 5, 2023 The applet that is at that stackoverflow link does toggle the Task View button. Your conversion of it does it as well. I was thinking that People might not be too dissimilar but I don't actually understand what the heck is going on so there's that. So much so that People doesn't even show up in my right click menu! My understanding is that "UpdatePerUserSystemParameters" stopped working around Windows 8. Link to comment Share on other sites More sharing options...
youtuber Posted January 5, 2023 Author Share Posted January 5, 2023 9 minutes ago, rsn said: So much so that People doesn't even show up in my right click menu! This will bring it back. #RequireAdmin RegWrite('HKCU\Software\Policies\Microsoft\Windows\Explorer', 'HidePeopleBar','REG_DWORD',Number('0')) Link to comment Share on other sites More sharing options...
rsn Posted January 5, 2023 Share Posted January 5, 2023 Ah, yes, duh. And thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now