If I already fixed it, apparently when copying and pasting it deleted the first letter, that's it and it's done.On the menu skin and the configuration skin:
You did everything well, except it should be IfFalseAction instead of fFalseAction like you have it in your code - just a typo. I think you can remove updating the meters and redrawing the skin from the conditions as well, since this is already done by the Folder measure when it finishes opening the current folder.
That being said, you should make sure that you understand WHAT the code does, and WHY it does it this way (I already explained this in my initial reply about this), because it's the last time I repeat such things, next time I'll just let you figure out things on your own.
Both your ideas (the conditional and the disabling) are good, but there is a problem: none of the things you use in either of your attempts are RELEVANT NUMERICAL values, but either strings or numbers without relevance to what you'd like to achieve (both conditionals and IfConditions work with numbers only, I already told you that, by the way). Even so, you omitted the name of the measure where you wanted to set the Disabled option in your 2nd idea code, and that is not valid.
From here I know what you tell me but I don't know how to assemble it correctly, help me here. I think it's a silly mistake but I'm not sure how to do it, and I don't want to do things wrong by saying I did.Even so, you omitted the name of the measure where you wanted to set the Disabled option in your 2nd idea code, and that is not valid.
- add a String measure as the 1st measure in your code
- set its String option to your #Select# variable, which is also a string
- use a Substitute option to replace its "Internet" and "Ping" values with "0" and "1", basically turning it into a number
- add a Disabled option to both the InternetStatus and the commented MeasurePing2 measures, and set those options to the proper formulas or conditional, based on the now numerical value of your newly created String measure above
- add a DynamicVariables=1 line to the InternetStatus measure, so that Rainmeter can see the dynamic value of the things in its Disabled option you just added
- add the contents of the IfTrue and IfFalse actions from your uncommented MeasurePing2 measure to the same actions in the InternetStatus measure, then remove the uncommented MeasurePing2 (makes no sense to have two measures for this when you can have just one)
- finally, uncomment your commented MeasurePing2 measure
Code: Select all
[MeasurePingIP]
Group=Pings
Measure=Plugin
Plugin=PingPlugin
DestAddress=#Ping02#
UpdateRate=#UpdateRate#
OnChangeAction=[!SetVariable Alpha2 ([MeasurePingIP]<1300?#AlphaOn#:#AlphaOff#)][!UpdateMeter *][!Redraw]
IfCondition=(#Select# = Ping)
IfTrueAction=[!SetOption Disabled 0][!UpdateMeter *][!Redraw]
IfFalseAction=[!SetOption Disabled 1][!UpdateMeter *][!Redraw]
Disabled=1
DynamicVariables=1
[MeasurePingIE]
Group=Pings
Measure=SysInfo
SysInfoType=INTERNET_CONNECTIVITY
IfCondition=(InternetStatus=1)
UpdateRate=3
;UpdateDivider=5
IfTrueAction=[!SetVariable Alpha2 #AlphaOn#][!UpdateMeter *][!Redraw]
IfFalseAction=[!SetVariable Alpha2 #AlphaOff#][!UpdateMeter *][!Redraw]
IfCondition2=(#Select# = Internet)
IfTrueAction2=[!SetOption Disabled 0][!UpdateMeter *][!Redraw]
IfFalseAction2=[!SetOption Disabled 1][!UpdateMeter *][!Redraw]
Disabled=1
DynamicVariables=1
[MeasureSub]
Measure=String
String=#Select#
Substitute="Internet:1","Ping:0"
DynamicVariables=1
[MeasurePing2]
Formula=([MeasureSub] = 1?[MeasurePingIE]:[MeasurePingIP])
- add the contents of the IfTrue and IfFalse actions from your uncommented MeasurePing2 measure to the same actions in the InternetStatus measure, then remove the uncommented MeasurePing2 (makes no sense to have two measures for this when you can have just one)
- finally, uncomment your commented MeasurePing2 measure
But see me saying how I'm going, I know I need to put (Even so, you omitted the name of the measure where you wanted to set the Disabled option in your 2nd idea code, and that is not valid.) that I was asking you how to do it correctly. and then continue with everything else
I await your review. thank you