mIRC Homepage
Posted By: danielboom readini - 13/03/21 09:48 AM
hi falks , i made


$readini mirc.ini,chanelfolder,n)


doesnt work, i want to read the channels, any help?
Posted By: maroon Re: readini - 14/03/21 09:08 PM
You're using the wrong syntax for $readini
If you want to look at the logfiles of channel's history, you can see them from the top menu: /tools/log-files
If that's not what you want, please be more descriptive of what you want to do
Posted By: Epic Re: readini - 15/03/21 09:43 AM

The correct syntax is: $readini(filename, [np], section, item)

Let's say in a text file called "mirc.ini" there are lines like this:
Code
[about]
portable=yes
version=7.63
show=no

We need to find out in the section "about" version number in item "version".

An example of a command to check the response:
Code
//echo -a $readini(mirc.ini, n, about, version)

I recommend an excellent reference directory for help developers of their own scripts: https://en.wikichip.org/wiki/mirc/identifiers/$readini

© mIRC Discussion Forums