It is currently April 23rd, 2024, 1:35 pm

Skin that loads skins (?)

General topics related to Rainmeter.
Felonious
Posts: 13
Joined: January 28th, 2011, 6:07 am

Skin that loads skins (?)

Post by Felonious »

New user here. Downloaded the program at the beginning of the week, and I've spent at least two hours tinkering with it every night since.

So I had the idea to create a toolbar with icons that will load skins, just like I've done for my most used folders, .exe's, and .doc's. Is that possible? Obviously .ini files are different, but I was hoping I could find a way to avoid having to open RainBrowser every time or navigate the right-click path. I've tried setting RainBrowser as the default "open with" program, but that didn't work. Is there anyway I can set up some sort of shortcut or quick-launch option on the desktop?
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Skin that loads skins (?)

Post by jsmorley »

To launch skins from Windows, just create shortcuts with properties like this:

"C:\Program Files\Rainmeter\Rainmeter.exe" !RainmeterActivateConfig ConfigName IniName.ini

To do the same from a skin use this on any meter:

LeftMouseUpAction=!RainmeterActivateConfig ConfigName IniName.ini
Felonious
Posts: 13
Joined: January 28th, 2011, 6:07 am

Re: Skin that loads skins (?)

Post by Felonious »

Wow, thanks for the quick response.

Just tried

LeftMouseUpAction=!RainmeterActivateConfig Enigma Notes.ini

to no avail. Any ideas?
Last edited by Felonious on January 28th, 2011, 6:49 am, edited 1 time in total.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Skin that loads skins (?)

Post by jsmorley »

Felonious wrote:Wow, thanks for the quick response.

So would I just do something like:

LeftMouseUpAction=!Execute ["C:\Program Files\Rainmeter\Rainmeter.exe" !RainmeterActivateConfig Enigma Notes.ini]

or would I also have to put a shortcut in the new skin's folder?
That would work just fine, although in a skin you don't need the "!Execute" unless you are going to be either 1) running an external application or launching a file with its associated application, or 2) executing more than one Rainmeter "bang" command in the same statement.

So:

LeftMouseUpAction=!RainmeterActivateConfig Enigma Notes.ini

Would work just as well in this case, and would not have to use the resources to shell out and execute Rainmeter.exe.
Felonious
Posts: 13
Joined: January 28th, 2011, 6:07 am

Re: Skin that loads skins (?)

Post by Felonious »

Yeah, I just looked back at your post and saw that. Tried it the way you described without any luck. If I have the skin in the subfolder "sidebar," do I have to account for that?
Felonious
Posts: 13
Joined: January 28th, 2011, 6:07 am

Re: Skin that loads skins (?)

Post by Felonious »

Nevermind, just got it. Added the folder path Enigma\Sidebar\Notes.

Brilliant. Thanks for the help!
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Skin that loads skins (?)

Post by jsmorley »

Felonious wrote:Yeah, I just looked back at your post and saw that. Tried it the way you described without any luck. If I have the skin in the subfolder "sidebar," do I have to account for that?
Yes. "ConfigName" will be exactly what is shown for the config in the Rainmeter context menu. It is really a subset of the folder the skin is in, under My Documents\Skins. So My Documents\Skins\Enigma\Sidebar\Notes\Notes.ini is going to look like:

!RainmeterActivateConfig Enigma\Sidebar\Notes Notes.ini
Felonious
Posts: 13
Joined: January 28th, 2011, 6:07 am

Re: Skin that loads skins (?)

Post by Felonious »

Awesome! Thanks! I love this program.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Skin that loads skins (?)

Post by jsmorley »

Glad to help. Say goodbye to all your free time... ;-)