eclectic-tech wrote:Aside: In a number of places in your code you appear to be trying to set a variable value using "keyword = value" syntax, that will NOR work. you need to use !SetVariable and to permanently change the value, !WriteKeyValue in an action bang, such as OnUpdateAction=[!SetVariable LastX #MasterX#][!SetVariable LastY #MasterY#]
Something similar I said before:
balala wrote:- What the [SetRackTop] section of the main code, want to be? It's not a measure, it's not a meter, so what you wanted to achieve with it? In Rainmeter, such sections can't be used. The options posted under it, are "orphans".
However I didn't realize that those options wanted to be some variables settings. Now suddenly became clear to me what Codger wanted to achieve.
So, if you're right eclectic-tech, probably the [SetRackTop] section should be a measure, something like:
Code: Select all
[SetRackTop]
Measure=Calc
OnUpdateAction=[!SetVariable LastX "#MasterX#"][!SetVariable LastY "#MasterY#"][!SetVariable MasterX "(#CURRENTCONFIGX#+10)"][!SetVariable MasterY "#CURRENTCONFIGY#"]
DynamicVariables=1
UpdateDivider=-1
or eventually:
Code: Select all
[SetRackTop]
Measure=Calc
OnUpdateAction=[!SetVariable LastX "#MasterX#"][!SetVariable LastY "#MasterY#"][!SetVariable MasterX "(#CURRENTCONFIGX#+10)"][!SetVariable MasterY "#CURRENTCONFIGY#"][!WriteKeyValue Variables LastX "#MasterX#"][!WriteKeyValue Variables LastY "#MasterY#"][!WriteKeyValue Variables MasterX "(#CURRENTCONFIGX#+10)"][!WriteKeyValue Variables MasterY "#CURRENTCONFIGY#"]
DynamicVariables=1
UpdateDivider=-1
The first variant will set dynamically the LastX, LastY, MasterX and MasterY variable, without writing them to the [Variables] section, while the second one, besides setting them dynamically will also write them to the [Variables] section, making this way the skin to keep them, even after a refresh.
Same thing about the
#MasterY# = (#MasterY# + 58) option of the [MeasureSetBottomHardDriveUsageBarCInRack] measure, which probably should be:
OnUpdateAction=[!SetVariable #MasterY# "(#MasterY# + 58)"] or
OnUpdateAction=[!SetVariable #MasterY# "(#MasterY# + 58)"][!WriteKeyValue Variables #MasterY# "(#MasterY# + 58)"]
Just be careful to add a
DynamicVariables=1 option to each meter or/and measure, which will have to use the dynamically set variables, otherwise they won't see them.
Codger wrote:Forgive my ignorance. I'm not sure I understand the request. The skin is currently just the code posted. And the common.inc listed in the opening post. And the .lua file you wrote. Am I misunderstanding what you need?
Do you want those three things packed up and attached and if so do you have a preferred container?
I have the (maybe wrong?) impression, that there are needed more then just three files: the Config containing the skin(s) belonging to the RackMaster group (with all its content) would be also needed, if those files are not included into the "main" config. If this is true and those files indeed are contained into another config, creating the .rmskin (as eclectic-tech has described) won't be possible, because you can't include two (or more) configs, into one single .rmskin. In this case, simply zip them and upload the package. Be careful to pack all included files, such as Common.inc, HardDriveBar.inc, or ReadIni.lua (even if this last one has exactly the posted code) and so on. Everything contained into the appropriate configs (folders).