mIRC Home    About    Download    Register    News    Help

Print Thread
#33225 30/06/03 07:56 PM
Joined: Jan 2003
Posts: 108
H
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

Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
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!
Joined: Jan 2003
Posts: 108
H
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

Joined: Dec 2002
Posts: 2,809
C
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.

Joined: Jan 2003
Posts: 108
H
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...?

Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
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!
Joined: Jan 2003
Posts: 108
H
Vogon poet
OP Offline
Vogon poet
H
Joined: Jan 2003
Posts: 108
Thanks laugh just needed an explanation.


Link Copied to Clipboard