Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1538

Bugs & Feature Suggestions • Re: [Bug] Config exists but is not available.

$
0
0
!ToggleConfig requires 2 parameters.
In fact it requires one or two parameters. Works with one single as well, in which case it toggles the first skin into the specified config.
!ActivateConfig does not require any parameters,
Sorry, it does. If no parameter is supplied, you get an error message in the log.
If you do not enclose your parameters in quotes, your code scenario will work:

Code:

[Variables]Bang=[!ToggleConfig Illustro\Clock clock.ini]; Bang=[!ActivateConfig Illustro\Clock ]
Same works even if parameters are enclosed into quotes. For instance: [!ToggleConfig "Illustro\Clock" "clock.ini"]. This does the same as with no quotes.
I think they’re being ignored judging by the log sayin “Illustro\Clock” and not “Illustro\Clock\” which is how it would read it if it was taking the file option.
In fact both, Illustro\Clock and Illustro\Clock\ are perfectly valid and can be used.
Yes, if there is only one .ini file in the specified config folder, then that is used by default.
It work even if there are more .ini files. In such a case, when the bang activates the skin, it activates the first one from the specified config.

Statistics: Posted by balala — Today, 6:55 pm



Viewing all articles
Browse latest Browse all 1538

Trending Articles