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

Help: Rainmeter Skins • Skin menu Toggle based on variable conditions

$
0
0
Hello, all!!

My first post here. I am trying to have a skin not expand a menu if a variable condition is set to 1.

So; I have two different .ini files for my skins, the folder structure has been checked to be correct, and they both share @resources folder and can access it.

My skins basically open down into a menu when you click on them. They are horizontally on the screen so it would be like this:

[ Security ] [ Games ]

When clicked on this happens:

[ Security ] [ Games ]
[ Antivirus ]
[ Defender ]
[ Defrag ]

And so on.

Clicking the top text toggles the below menu: LeftMouseUpAction=[!ToggleMeterGroup Security]

That is working as intended. I am trying to have [ Games ] group not extend if [ Security ] group is already extended. I have setup a variable in my @resources file like this:

[Variables]
SecurityState=0
GamesState=0


0 would mean the menu is not expanded and 1 that it is, and I update them like this:

LeftMouseUpAction=[!ToggleMeterGroup Games][!WriteKeyValue Variables GamesState "(1-#GamesState#)" "#@#Variables.inc"][!SetVariable GamesState "(1-#GamesState#)"][!Update]

the variables are correctly being setup and updated.

I have tried this code to achieve my goal but it is not working and any tips are greatly appreciated:

IfCondition=#SecurityState#=1
IfTrueAction=[]
IfFalseAction=[!ToggleGamesGroup Games][!WriteKeyValue Variables GamesState "(1-#GamesState#)" "#@#Variables.inc"][!SetVariable GamesState "(1-#GamesState#)"][!Update]


Thank you.

Statistics: Posted by UrdaNox — Today, 9:12 am — Replies 17 — Views 183



Viewing all articles
Browse latest Browse all 904

Trending Articles