mIRC Home    About    Download    Register    News    Help

Print Thread
Writing mIRC ini settings #33225 30/06/03 07:56 PM
Joined: Jan 2003
Posts: 108
H
Hindsight Offline OP
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
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

Re: Writing mIRC ini settings #33226 30/06/03 08:22 PM
Joined: Feb 2003
Posts: 2,681
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,681
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


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Re: Writing mIRC ini settings #33227 30/06/03 09:16 PM
Joined: Jan 2003
Posts: 108
H
Hindsight Offline OP
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
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

Re: Writing mIRC ini settings #33228 30/06/03 09:18 PM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
And what he is telling you is that you can't do that.

Re: Writing mIRC ini settings #33229 30/06/03 09:33 PM
Joined: Jan 2003
Posts: 108
H
Hindsight Offline OP
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
So what ur saying is that there is no way to change settings without going through the dialog...?

Re: Writing mIRC ini settings #33230 01/07/03 05:42 AM
Joined: Feb 2003
Posts: 2,681
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,681
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


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Re: Writing mIRC ini settings #33231 01/07/03 11:42 AM
Joined: Jan 2003
Posts: 108
H
Hindsight Offline OP
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
Thanks laugh just needed an explanation.