mIRC Home    About    Download    Register    News    Help

Print Thread
#268561 13/03/21 09:48 AM
Joined: Mar 2021
Posts: 25
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Mar 2021
Posts: 25
hi falks , i made


$readini mirc.ini,chanelfolder,n)


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

danielboom #268565 14/03/21 09:08 PM
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
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

danielboom #268567 15/03/21 09:43 AM
Joined: Jan 2012
Posts: 299
Fjord artisan
Offline
Fjord artisan
Joined: Jan 2012
Posts: 299

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



🌐 http://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples

Link Copied to Clipboard