mIRC Home    About    Download    Register    News    Help

Print Thread
#239818 24/11/12 12:23 PM
Joined: Nov 2012
Posts: 3
L
Self-satisified door
OP Offline
Self-satisified door
L
Joined: Nov 2012
Posts: 3
Hello everyone!

I'm new here, so try not to be hard on me:$

First of all, i have a question!

How to work with .INI files?

I tried some, but i can't figger it out:<

Lorenzoh #239819 24/11/12 12:42 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
You change/edit them true mirc, by pressing ALT + R you open the remote section, this is where you make scripts for mirc. Read a bit about mirc in the help file for mirc. Just type /help in your mirc, or press F1 that is the default key to bring up the help file.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #239820 24/11/12 01:02 PM
Joined: Nov 2012
Posts: 3
L
Self-satisified door
OP Offline
Self-satisified door
L
Joined: Nov 2012
Posts: 3
Originally Posted By: sparta
You change/edit them true mirc, by pressing ALT + R you open the remote section, this is where you make scripts for mirc. Read a bit about mirc in the help file for mirc. Just type /help in your mirc, or press F1 that is the default key to bring up the help file.


I know mSL (mIRC scripting language.)

But i want to learn how to work with the .ini.

The on *:text:!hey*:*: { <----i know all of that;)

But not how to work with the .ini files
Can't find it in F1(Help)

sparta #239821 24/11/12 01:03 PM
Joined: Nov 2012
Posts: 3
L
Self-satisified door
OP Offline
Self-satisified door
L
Joined: Nov 2012
Posts: 3
Originally Posted By: sparta
You change/edit them true mirc, by pressing ALT + R you open the remote section, this is where you make scripts for mirc. Read a bit about mirc in the help file for mirc. Just type /help in your mirc, or press F1 that is the default key to bring up the help file.


I finaly got this one working;)

ON *:TEXT:!zet verjaardag*:#:{
if ($3) && ($regex($4,/^\d+\/\d+/\d+$/)) {
writeini birthday.ini Birthday $3 $4
notice $nick Verjaardag opgeslagen.
}
else {
notice $nick Syntax Error: !zet verjaardag <NAME> <DD/MM/YYYY>
}
}

ON *:TEXT:!Verjaardag*:#:{
if ($readini(birthday.ini,n,Birthday,$2)) {
var %nick = $v1
}
else { var %nick = $readini(birthday.ini,n,Birthday,$nick) }
if (!%nick) {
notice $nick Je hebt je verjaardag nog niet opgeslagen!
}
else {
notice $nick Leeftijd: $calc(($ctime - $ctime(%nick))/60/60/24/365) jaar oud!
}
}


Link Copied to Clipboard