is it possible to hide the network icon from the system by using registery?
i found how to hide all icons (HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer) but not only one
thanks
hide network icon from systray
- RSBasic
- Moderator
- Posts: 1218
- Joined: Thu Dec 31, 2009 11:05 pm
- Location: Gernsbach (Germany)
- Contact:
Re: hide network icon from systray
To disable for current user: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\
Or for all user: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\
Create dword entry: HideSCANetwork
Value: 00000001
Or for all user: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\
Create dword entry: HideSCANetwork
Value: 00000001
Re: hide network icon from systray
i wrote this code (using a "writeRegister" function), but i have 3 problems.
1. the key is Not correct, i open it in the registery and its wrong.
2. i have 64 bit windows and it seems it's not the same key but i'm Not sure
3. i don't know how to restart the explorer to apply the change. i wrote this code in batch but i don't know how To do it in purebasic And also i think i need a small delay after the killing
thank you very much
1. the key is Not correct, i open it in the registery and its wrong.
2. i have 64 bit windows and it seems it's not the same key but i'm Not sure
3. i don't know how to restart the explorer to apply the change. i wrote this code in batch but i don't know how To do it in purebasic And also i think i need a small delay after the killing
thank you very much
Code: Select all
Procedure.l writeRegister(OpenKey.l, SubKey.s, keyset.s, keyvalue.s)
Define.l hKey, DataSize, result
hKey = 0
If RegCreateKey_(OpenKey,SubKey,@hKey) = 0
If RegSetValueEx_(hKey,keyset,0,#REG_SZ,@keyvalue, Len(keyvalue)) = 0
result = 1
EndIf
RegCloseKey_(hKey)
EndIf
ProcedureReturn result
EndProcedure
regTopKey.l = #HKEY_LOCAL_MACHINE
regKey.s = "Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"
a = writeRegister(regTopKey, regKey, "HideSCANetwork", "00000001")
MessageRequester("regedit", "result: " + Str(a))
Code: Select all
taskkill /IM explorer.exe /T /F
explorer.exe
Last edited by boyoss on Thu Feb 11, 2016 4:22 pm, edited 1 time in total.
- RSBasic
- Moderator
- Posts: 1218
- Joined: Thu Dec 31, 2009 11:05 pm
- Location: Gernsbach (Germany)
- Contact:
Re: hide network icon from systray
You can use SendMessageTimeout_() with this message: https://msdn.microsoft.com/en-us/librar ... 85%29.aspx (not tested)boyoss wrote:3. i don't know how to restart the explorer to apply ythe change. i wrote thyhis code in batch but i don't know how To do it in purbasic And also i think i need a small delay afte the killing