mIRC Home    About    Download    Register    News    Help

Print Thread
reload mirc.ini #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.
Re: reload mirc.ini [Re: Patje] #176300 07/05/07 06:10 PM
Joined: Dec 2002
Posts: 2,025
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,025
You mean like /cnick on|off ?

Re: reload mirc.ini [Re: 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

Re: reload mirc.ini [Re: Patje] #176302 07/05/07 06:23 PM
Joined: Dec 2002
Posts: 2,025
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,025
You're welcome. I never new it wasn't documented.

* RoCk wonders why it's not

Re: reload mirc.ini [Re: RoCk] #176455 10/05/07 03:26 AM
Joined: Apr 2003
Posts: 342
M
MeStinkBAD Offline
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!
Re: reload mirc.ini [Re: MeStinkBAD] #176457 10/05/07 03:44 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
While this isn't ideal, you could use /exit -r

Re: reload mirc.ini [Re: MeStinkBAD] #176473 10/05/07 12:02 PM
Joined: Dec 2002
Posts: 2,025
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,025
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

Re: reload mirc.ini [Re: RusselB] #176476 10/05/07 12:13 PM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
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