jsmorley wrote: Correct.
did that but still nothing, refresh, reopen folder
jsmorley wrote: Correct.
jsmorley wrote:Sure.
Here is an example skin:
Save the below code as C:\Program Files\Rainmeter\Addons\ToggleShowProtected\ToggleShowProtected.vbsCode: Select all
[Rainmeter] Update=1000 DynamicWindowSize=1 BackgroundMode=2 SolidColor=0,0,0,1 [MeasureSuperHidden] Measure=Registry RegHKey=HKEY_CURRENT_USER RegKey=Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced RegValue=ShowSuperHidden [MeterSuperHidden] Meter=String MeasureName=MeasureSuperHidden FontColor=255,255,255,255 FontSize=13 Text="Show Protected = %1" LeftMouseUpAction=!Execute ["#ADDONSPATH#ToggleShowProtected\ToggleShowProtected.vbs"]
Click on the meter to toggle.Code: Select all
' Script to toggle Windows Explorer display of proteced system files Option Explicit Dim dblHiddenData, strSuperHiddenKey Dim strKey, WshShell On Error Resume Next strKey = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" strSuperHiddenKey = strKey & "\ShowSuperHidden" Set WshShell = WScript.CreateObject("WScript.Shell") dblHiddenData = WshShell.RegRead(strSuperHiddenKey) If dblHiddenData = 0 Then WshShell.RegWrite strSuperHiddenKey, 1, "REG_DWORD" Else WshShell.RegWrite strSuperHiddenKey, 0, "REG_DWORD" End If
Code: Select all
[MeasureRegistry]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=SomePlace\InThe\Registry
RegValue=SomeRegSzValue
[ConvertREGSZ]
Measure=Calc
Formula=[MeasureRegistry]
DynamicVariables=1
Thank you, it really helped.Alex2539 wrote:If it the value is of type REG_SZ, then you need to pass it through a Calc measure first to convert the string into a number. Then you can use it however you like. Example:[ConvertREGSSZ] is the measure you would then work with.Code: Select all
[MeasureRegistry] Measure=Registry RegHKey=HKEY_CURRENT_USER RegKey=SomePlace\InThe\Registry RegValue=SomeRegSzValue [ConvertREGSZ] Measure=Calc Formula=[MeasureRegistry] DynamicVariables=1
OK, so another problem: the skin is working in Rainbar 4.6, but a friend of mine is using Rainbar 4.5 and he don't want to update. But in that version, the skin is not working. I studied the problem and I'd like to know how can be done the conversion of a string to a number in a skin in Rainbar 4.5?balala wrote: Thank you, it really helped.
poiru wrote:He needs to update. Tell him to copy all his skins, then remove Rainbar, install Rainmeter 1.3 and copy skins back.