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

Help: Rainmeter Skins • Re: Retreive all skin variations (Lua)

$
0
0
I apologies if I wasnt clear!

WhatI want to do is get (retreive) all variants of a skin using a lua script. (Jsmorley was basically on point)
Plugins wouldnt work. If you still arent sure what "variants" im talking about, it's basically like this

Code:

-- MYSKIN-- -- WeatherMonitor-- -- -- Main.ini-- -- -- Variant1.ini-- -- -- Variant2.ini
I basically want to use a Lua script to retrieve all .ini files inside MYSKIN/WeatherMonitor (otherwise known as "variations/variants" as I tried to explain earlier)

For a little more context, I need this for a custom context menu I'm making. I wanted users to be able to view and choose among variants of the current skin they right clicked on directly from the context menu and to be able to do this, I'd first need the actual variants which is where the lua script comes in.

I hope this clears things up! :oops:
Rather than trying to create a list of variants, you can easily load every variant of a skin by using the !ActivateConfig bang.
If you do not specify a file name, the bang will load the next variant each time.

Code:

[Rainmeter]ContextTitle=Next Weather MonitorContextAction=[!ActivateConfig "MySkin/WeatherMonitor"]
Of course, if you want a list, then Fileview plugin or the DOS CLI suggested are the best options but will require additional measures and coding.

Statistics: Posted by eclectic-tech — Today, 12:07 am



Viewing all articles
Browse latest Browse all 691

Trending Articles