I had an idea that might be crazy and I would love to hear from you, the more experienced Rainmeter creators than me, if there is a way to do it or not.
Is it possible to add skin into a theme on a "click"? I am talking about the whole "skin", not meter or measure. Let's say I have a theme and want to have an app launcher. I don't know how many apps does the user want to have there, two, five, twenty... So I create an interface skin where the user enters the app exe file location, name and maybe selects icon. The users click on "Do the magic" button, and as a result a new skin is added to his desktop.
Why create a whole new skin?
- Let's say I want to have office launcher skins on the left of my screen, games on the right and then some other apps in between. And I want to have the option to move each skin independently.
How to do this?
- I believe LUA should be able to write a new file and hopefully also a new folder. Could somebody confirm it? Of course, the file or rather folder name has to be unique so the skin folder would be called something like "launcher_24".
- If LUA is able to create a new file, it should be pretty easy to copy a file - a template for the launcher skin - and just replace couple of variables - path to exe file, label, icon...
- Is there a way how to place the skin on the desktop without the need to refresh whole Rainmeter? To reload list of configs?
- Is there a way to detect that the skin was removed from desktop (deactivated) and if so, can LUA delete the hidden skin file and folder?
I haven't worked with Rainmeter for some time now so I have lost track of what is possible and what is not. Maybe it is still just a dream maybe it is already possible. The app launcher is one possible application. Or we could have an aquarium theme with variable number of fish in it. Or - and that was my original idea - we could finally create a Lego theme where the user could create an indefinite number of bricks from the template and build with them whatever he/she wants Please, help me make that happen
It is currently April 26th, 2024, 3:16 am
Dynamic skin creation - is it possible?
-
- Posts: 36
- Joined: February 18th, 2014, 4:41 pm
-
- Rainmeter Sage
- Posts: 1399
- Joined: April 24th, 2021, 8:13 pm
-
- Rainmeter Sage
- Posts: 1399
- Joined: April 24th, 2021, 8:13 pm
Re: Dynamic skin creation - is it possible?
If you want it that badly, you can use PowershellRM, which will create a skin, place it,
Writekeyvalue OnRefreshAction to
- - - ActivateConfig NewConfig and
- - - Writekeyvalue OnRefreshAction to blank.
Then define a function that will delete the config upon deactivation, tho deactivation should not be triggered by OnCloseAction.
Writekeyvalue OnRefreshAction to
- - - ActivateConfig NewConfig and
- - - Writekeyvalue OnRefreshAction to blank.
Then define a function that will delete the config upon deactivation, tho deactivation should not be triggered by OnCloseAction.
from the Realm of Death
-
- Posts: 246
- Joined: July 8th, 2021, 11:30 pm
- Location: The King's Avenue, Golden Kingdom
Re: Dynamic skin creation - is it possible?
I feel that it is possible, though an overwhelming amount of work would be required - of course without lua or Powershell.
the DA GALLERY For some Reason, the square root of X2 does not involve X
-
- Rainmeter Sage
- Posts: 1399
- Joined: April 24th, 2021, 8:13 pm
-
- Posts: 246
- Joined: July 8th, 2021, 11:30 pm
- Location: The King's Avenue, Golden Kingdom
Re: Dynamic skin creation - is it possible?
Code: Select all
!EditSkin
Code: Select all
!WriteKeyValue
the DA GALLERY For some Reason, the square root of X2 does not involve X
-
- Rainmeter Sage
- Posts: 1399
- Joined: April 24th, 2021, 8:13 pm
Re: Dynamic skin creation - is it possible?
Its not about writing a skin. A ini file can be writren with lua instead of a lot of WriteKeyValue.David8192 wrote: ↑September 15th, 2021, 11:05 pmand lots ofCode: Select all
!EditSkin
. A text input box for the user to specify some crucial elements such as config name, Update, number of measures and meters, etc and to choose the type of skin(time, whether, etc.).Code: Select all
!WriteKeyValue
The problem is activating it. You can't do that without a !RefreshAll.
Also !EditSkin will just open the current config or given config in the default rainmeter editor.
from the Realm of Death
-
- Posts: 246
- Joined: July 8th, 2021, 11:30 pm
- Location: The King's Avenue, Golden Kingdom
Re: Dynamic skin creation - is it possible?
Mostly I was just thinking of giving Rainmeter the credit that it is due. Why give the job to Lua when it can be done internally?A ini file can be writren with lua instead of a lot of WriteKeyValue.
Importantly, with or without lua, the effort put in is not going to be any less. Honestly it would be quite easy if the skins to be made have the same components(e.g. Always create a date skin). But if at one point the user wants a timer and at another a music visualizer, yeah.... it will be very demanding regardless of the method.
That is a fact we should embrace. There are no 2 ways about it.You can't do that without a !RefreshAll.
I am aware of that and my target is!EditSkin will just open the current config or given config in the default rainmeter editor.
for possible quick ...or thorough... analysis and perhaps folder creationgiven config
the DA GALLERY For some Reason, the square root of X2 does not involve X
-
- Rainmeter Sage
- Posts: 1399
- Joined: April 24th, 2021, 8:13 pm
Re: Dynamic skin creation - is it possible?
Because it's easier and more potent.
from the Realm of Death
-
- Posts: 1140
- Joined: February 17th, 2011, 7:45 pm
- Location: a Galaxy S7 far far away