Difference between revisions of "IniValueChange"
Line 20: | Line 20: | ||
# The first parameter is a standard description; either plaintext, or better a [[Description templates|description template]], since that allows localization when displaying results to the user. | # The first parameter is a standard description; either plaintext, or better a [[Description templates|description template]], since that allows localization when displaying results to the user. | ||
# The second parameter describes the file; you may use [[Path templates|path template]] here. | # The second parameter describes the file; you may use [[Path templates|path template]] here. | ||
− | # The third parameter describes the section inside the INI file; [[AlgoPrefix|Algo-Prefixes]] are allowed here. | + | # The third parameter describes the section inside the INI file; [[AlgoPrefix|Algo-Prefixes]] are allowed here. {{AlgoPrefix}} |
− | # The fourth parameter describes the name of the value; [[AlgoPrefix|Algo-Prefixes]] are allowed here. | + | # The fourth parameter describes the name of the value; [[AlgoPrefix|Algo-Prefixes]] are allowed here. {{AlgoPrefix}} |
− | # The fifth parameter identifies the data the value has to match; [[AlgoPrefix|Algo-Prefixes]] are allowed here. | + | # The fifth parameter identifies the data the value has to match; [[AlgoPrefix|Algo-Prefixes]] are allowed here. {{AlgoPrefix}} |
# The sixth parameter specifies the new data for the value. | # The sixth parameter specifies the new data for the value. | ||
# Optionally, you may use [[Advanced build parameters|advanced build parameters]] in the seventh parameter. | # Optionally, you may use [[Advanced build parameters|advanced build parameters]] in the seventh parameter. |
Revision as of 16:18, 17 February 2008
Contents
Usage
IniValueChange:[description],[filename],[section],[value],[data],[new data],<advanced build parameters>
Examples
IniValueChange:"A silly example","C:\Test.ini","TestMain","Greeting","Hello World","Hallo Welt"
Let's take a look at C:\Test.ini before this check has taken place:
[TestMain] Greeting=Hello World
Now after this has been detected and fixed by the user, it would look like:
[TestMain] Greeting=Hallo Welt
Description
This command changes the data of a value inside an INI file.
- The first parameter is a standard description; either plaintext, or better a description template, since that allows localization when displaying results to the user.
- The second parameter describes the file; you may use path template here.
- The third parameter describes the section inside the INI file; Algo-Prefixes are allowed here. AP
- The fourth parameter describes the name of the value; Algo-Prefixes are allowed here. AP
- The fifth parameter identifies the data the value has to match; Algo-Prefixes are allowed here. AP
- The sixth parameter specifies the new data for the value.
- Optionally, you may use advanced build parameters in the seventh parameter.
You might want to take advantage of the Algo-Prefix <$REGMATCHn> result of previous <regexpr> checks here.