ThePortugueseMan wrote: ↑February 28th, 2021, 5:24 pm
I believe it ThemeName is what controls the theme to set. It's at variables.inc and when I refresh the skin the theme changes to ThemeName in that file. All the files in this skin that change the theme have this code,
[!WriteKeyValue "Variables" "ThemeName" "noon" "#@#variables.inc"][!Refresh *][!ActivateConfig "Honey\themechanger"] not sure if that helps.
No, it really doesn't, but see below.
Note that the !ActivateConfig really requires two parameters: the name of the config which contains the skin you want to load (this is added) and the name of the skin, which has to be activated (this isn't). However the bang works even with one single parameter, the name of the config, because in such cases it activates (loads) the first skin of the config (if no skin is activated) or the next one (if a skin is already activated).
ThePortugueseMan wrote: ↑February 28th, 2021, 5:24 pm
Edit: I discovered I can't use DynamicVariables in [Variables]
It can be used
ONLY on measures and meters, having set the
DynamicVariables=1 option.
ThePortugueseMan wrote: ↑February 28th, 2021, 5:24 pm
Edit2: I think the issues lies in the
!WriteKeyvalue. The documentation says that in order to apply the changes made by
!WriteKeyvalue the skin must be refreshed.
Yes, that's right, but if you add both bangs, a !WriteKeyValue and a !SetVariable, you do two operations: you write the new value of the variable into the [Variables] section (so this way after a refresh you don't get lost the variable) and you set it dynamically, to can immediatelly use it into a meter or measure, without having to refresh the skin. That's why I said you to add a DynamicVariables=1 option to the meter or measure where you want to use the variable.
Ok, in order to can help you more, please pack the whole config you're working with (simply posting the code is not enough probably, because there are some other needed files as well) and upload the package here. This way I'm gonna have all needed files to see what's going on.