You can loop through ini files using $ini combined with $readini to get proper values.
Use the help files to know how to use them
example:
Code:
var %i 1
var %length $ini(inifile.ini,section,0)
while (%i < %length) {
var %item $ini(inifile.ini,section,%i)
var %value $readini(inifile.ini,section,%item)
echo -ag Value of Nr: %i is %value and the item is called %item
}
Not sure if that's exactly what you're looking for. But I guess you'll figure it out from reference. There's also support for wildcards using $ini