mIRC Home    About    Download    Register    News    Help

Print Thread
#176299 07/05/07 05:59 PM
P
Patje
Patje
P
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.
#176300 07/05/07 06:10 PM
Joined: Dec 2002
Posts: 1,996
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 1,996
You mean like /cnick on|off ?

RoCk #176301 07/05/07 06:15 PM
P
Patje
Patje
P
Originally Posted By: RoCk
You mean like /cnick on|off ?

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

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

* RoCk wonders why it's not

RoCk #176455 10/05/07 03:26 AM
M
MeStinkBAD
MeStinkBAD
M
There should still be a way to force reloading of the current configuration file in use...

#176457 10/05/07 03:44 AM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
While this isn't ideal, you could use /exit -r

#176473 10/05/07 12:02 PM
Joined: Dec 2002
Posts: 1,996
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 1,996
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,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
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.


Link Copied to Clipboard