mIRC Home    About    Download    Register    News    Help

Print Thread
readini #268561 13/03/21 09:48 AM
Joined: Mar 2021
Posts: 2
D
danielboom Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
D
Joined: Mar 2021
Posts: 2
hi falks , i made


$readini mirc.ini,chanelfolder,n)


doesnt work, i want to read the channels, any help?

Re: readini [Re: danielboom] #268565 14/03/21 09:08 PM
Joined: Jan 2004
Posts: 1,551
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,551
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

Re: readini [Re: danielboom] #268567 15/03/21 09:43 AM
Joined: Jan 2012
Posts: 99
Epic Offline
Babel fish
Offline
Babel fish
Joined: Jan 2012
Posts: 99

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