@CyberCitizen
The great thing about ini files is that the program will only pay attention to the information it is looking for. So we can take advantage of this and add our own Sections to the ini file.
What we want is to copy the Sections we want information from and then re-write the Section(s) with the format we need. This macro just reads the entire ini for all Sections. Replaces [[ with [ and ]] with ]. Then it adds the newly formed sections to the ini. You can now retreive your data.
To make it easier, you could write the new Sections into your own ini. Once you have the info needed, just delete the new ini file.
BTW - The spacing between the equal sign(=) does not matter.
Code: Select all
let>FPath=%Desktop_Dir%
ExportData>TEST.INI_DATA,%FPath%\Test.ini
GoSub>AddValid
mdl>The password is : %strValue%
srt>AddValid
ReadFile>%FPath%\test.ini,File
StringReplace>File,[[,[,File
StringReplace>File,]],],File
// add some empty lines for spacing between lines in file.
let>File=%crlf%%crlf%%crlf%%crlf%%File%
// add your valid entries to ini.
writeln>%FPath%\test.ini,wtf,%File%
// read new entry
ReadIniFile>%FPath%\test.ini,free.hitnews.com,password,strValue
END>AddValid
/*
TEST.INI_DATA:
5B5B667265652E6869746E6577732E636F6D5D5D0D0A70617373776F7264203D206E65775F70617373776F72640D0A0D0A0D0A0D0A5B5B4F746865722E696E76616C6964735D5D0D0A7768617465766572203D206F746865725F64617461
*/
Hope this is useful.
PepsiHog