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.!ToggleConfig requires 2 parameters.
Sorry, it does. If no parameter is supplied, you get an error message in the log.!ActivateConfig does not require any parameters,
Same works even if parameters are enclosed into quotes. For instance: [!ToggleConfig "Illustro\Clock" "clock.ini"]. This does the same as with no quotes.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 ]
In fact both, Illustro\Clock and Illustro\Clock\ are perfectly valid and can be used.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.
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.Yes, if there is only one .ini file in the specified config folder, then that is used by default.
Statistics: Posted by balala — Today, 6:55 pm