mIRC Home    About    Download    Register    News    Help

Print Thread
#176299 07/05/07 05:59 PM
Joined: May 2007
Posts: 2
P
Patje Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
P
Joined: May 2007
Posts: 2
I know the mIRC files say I shouldn't, but I want to change an item in mirc.ini using /writeini, and reload mirc.ini so all changes are used immediatly. How do I do this? I think it is possible since mIRC does exactly the same when you press ok in the option dialog.

Thanks in advance

Code:
writeini mirc.ini options n0 $puttok($readini(mirc.ini,options,n0),1,32,46)

^ This is the item which enables nick colors, which is checkable in the addressbook, in the color tab.

Last edited by Patje; 07/05/07 06:01 PM.
Patje #176300 07/05/07 06:10 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
You mean like /cnick on|off ?

RoCk #176301 07/05/07 06:15 PM
Joined: May 2007
Posts: 2
P
Patje Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
P
Joined: May 2007
Posts: 2
Originally Posted By: RoCk
You mean like /cnick on|off ?

Tyvm, I never heard of this feature! mIRC keeps surprising me

Patje #176302 07/05/07 06:23 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
You're welcome. I never new it wasn't documented.

* RoCk wonders why it's not

RoCk #176455 10/05/07 03:26 AM
Joined: Apr 2003
Posts: 342
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2003
Posts: 342
There should still be a way to force reloading of the current configuration file in use...


Beware of MeStinkBAD! He knows more than he actually does!
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
While this isn't ideal, you could use /exit -r

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
Quote:
There should still be a way to force reloading of the current configuration file in use...


I agree. There should be a /reloadini to go with /saveini

RusselB #176476 10/05/07 12:13 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
This won't work, when mirc exits, it overwrites most mirc.ini sections with the respective settings in its memory, erasing any changes you made to mirc.ini with /writeini. There is currently no simple/elegant way around this.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Link Copied to Clipboard