Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1538

Help: Rainmeter Skins • !ActivateConfig Giving Warning 0 How to WOrkaround?

$
0
0
Hello,

I have a fairly basic code segment. It is ActivatingConfig depending on a variable. Like THis:

Code:

[VisualToggleO]Meter=ShapeShape=Rectangle 154,292,54,54,26 | StrokeWidth 0 | Fill LinearGradient MyGradient1MyGradient1=270 | 255,240,207,255 ; 0,0 | 240,210,85,255 ; 0.05 | 60,60,60,255 ; 0.25 | 255,240,207,255 ; 0.75 | 60,60,60,255 ; 0.9 | 215,190,90,255 ; 0.99LeftMouseUpAction=[!SetVariable Beta "(abs((#Beta#-1)%2))"][!WriteKeyValue Variables Beta "[#Beta]" "#@#MainVariables.inc"][!SetVariable Minimal "(abs((#Minimal#-1)%2))"][!WriteKeyValue Variables Minimal "[#Minimal]" "#@#MainVariables.inc"][!Update]DynamicVariables=1Hidden=#ModeP#[MeasureMode]Measure=CalcIfCondition=(#Beta# = 1)IfTrueAction=[!ActivateConfig "Utopia Sound\Beta Sound Clock" "BetaSoundClock.ini"][!SetVariable BetaOn "1"][!WriteKeyValue Variables BetaOn "[#BetaOn]" "#@#MainVariables.inc"][!Update]IfCondition2=(#Minimal# = 1)IfTrueAction2=[!ActivateConfig "Utopia Sound\Beta Sound Clock" "Cover Wizard.ini"][!Update]DynamicVariables=1
So, it works properly, but if the skin is refreshed the warning comes up "Config already active".

Is there a way to work this out to not pass a warning?

If not, I'm happy with the functionality, its just that intrinsic warning that is 'bugging' me. Well TBH the refresh causes forces the user to clock the toggle button twice until it goes fine. So, I'd like to stop that as well.

:)

Thanks.

Statistics: Posted by CodeCode — 2 minutes ago



Viewing all articles
Browse latest Browse all 1538

Trending Articles