mIRC Homepage
Posted By: Patje reload mirc.ini - 07/05/07 05:59 PM
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.
Posted By: RoCk Re: reload mirc.ini - 07/05/07 06:10 PM
You mean like /cnick on|off ?
Posted By: Patje Re: reload mirc.ini - 07/05/07 06:15 PM
Originally Posted By: RoCk
You mean like /cnick on|off ?

Tyvm, I never heard of this feature! mIRC keeps surprising me
Posted By: RoCk Re: reload mirc.ini - 07/05/07 06:23 PM
You're welcome. I never new it wasn't documented.

* RoCk wonders why it's not
Posted By: MeStinkBAD Re: reload mirc.ini - 10/05/07 03:26 AM
There should still be a way to force reloading of the current configuration file in use...
Posted By: RusselB Re: reload mirc.ini - 10/05/07 03:44 AM
While this isn't ideal, you could use /exit -r
Posted By: RoCk Re: reload mirc.ini - 10/05/07 12:02 PM
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
Posted By: qwerty Re: reload mirc.ini - 10/05/07 12:13 PM
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.
© mIRC Discussion Forums