CodeCode wrote: ↑May 5th, 2022, 2:30 am
I am trying this:
Code: Select all
[!SetVariable Timemode "5" "#@#Abbadon.inc"][!WriteKeyValue Variables Timemode "5" "#@#Abbadon.inc"][!ShowMeterGroup NullStyle "Another\Abbadon Time"][!RefreshGroup Abbadon]
Everything is working with the hope that the !ShowMeterGroup config is correctly referenced.
To be honest, I doubt. The first bang (
[!SetVariable Timemode "5" "#@#Abbadon.inc"]) can't work. It can't because the last parameter (
#@#Abbadon.inc) is mistaken this way. If a !SetVariable bang (as well as most) has a last parameter, it has to be the name of a config, not the name of a file.
#@#Abbadon.inc is a file, probably included included in your skin, however the !SetVariable bang can't set a variable into such a file, not even into a .ini file, but can into a skin, identified by a config name. Accordingly the above bang should be something like
[!SetVariable Timemode "5" "Another\Abbadon Time"].
The second bang (
[!WriteKeyValue Variables Timemode "5" "#@#Abbadon.inc"]) is correct from this point of view, at least assuming the Timemode variable is kept into the [Variables] section of the
#@#Abbadon.inc file. !WriteKeyValue is the exception I talked about above, when I said:
If a !SetVariable bang (as well as most) has a last parameter, it has to be the name of a config, not the name of a file.
The last parameter of the !WriteKeyValue bang has to be a file, because this bang physically writes something (a variable for instance) to a file, so you have to specify the file in which the writing has to go on.