mIRC Homepage
Posted By: Hindsight Writing mIRC ini settings - 30/06/03 07:56 PM
Ive been trying to dynamically change a users quit message on load; mostly because its a quit message manager. Im having trouble on the other hand with writing the quit message out. IE:
Code:
on 1:LOAD: {
  remini mirc.ini text quit
  writeini mirc.ini text quit $chr(36) $+ read(hindquit.txt))
  saveini
}

I can see that it writes out to mirc.ini just fine, but when i go into the options dialog within mIRC it will do one of two things.
1: not show $read(hindquit.txt)
2: when i cancel or apply it will completely erase the whole quit item within mirc.ini.

To be honest its a combination of both that usually messes it up.
I need a way to refresh that dialog after writing to the ini, and/or make the dialog not effect the ini that i wrote to.
Anyway any help would be greatly appriciated. smile
Posted By: Raccoon Re: Writing mIRC ini settings - 30/06/03 08:22 PM
Change the Quit Message setting to: $randquit
Then add this alias: ALIAS RandQuit return $read(hindquit.txt)

Or better yet, just put $read(hindquit.txt) in your Quit Message setting.

- Raccoon
Posted By: Hindsight Re: Writing mIRC ini settings - 30/06/03 09:16 PM
I realize how to do it... but that wasnt the question I had. Reread it, I asked for a way to do it, I want it so that users of the script dont have to configure it manually
Posted By: codemastr Re: Writing mIRC ini settings - 30/06/03 09:18 PM
And what he is telling you is that you can't do that.
Posted By: Hindsight Re: Writing mIRC ini settings - 30/06/03 09:33 PM
So what ur saying is that there is no way to change settings without going through the dialog...?
Posted By: Raccoon Re: Writing mIRC ini settings - 01/07/03 05:42 AM
It is not possible to safely and coherently modify the mIRC.ini file while mIRC is running. If you close mIRC and do it with an external process, then so be it. If that external process happens to be another mIRC client using a different INI settings file, then I hope you have your flowchart ready. If you ask me, it's much ado about nothing.

- Raccoon
Posted By: Hindsight Re: Writing mIRC ini settings - 01/07/03 11:42 AM
Thanks laugh just needed an explanation.
© mIRC Discussion Forums