mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2004
Posts: 11
P
Plasma Offline OP
Pikka bird
OP Offline
Pikka bird
P
Joined: Jun 2004
Posts: 11
IRC>Messages in Options there is a box, 'Timestamp events:' to prefix messages with a timestamp.

Here is what I have in it: (c)14[h:nn](c)

(Colour control code, then 14, then [h:nn], then the colour control code again).

This is so I can colour my timestamp information a shade of grey.

However, when I restart mIRC, my setting is reverted back to the plain [h:nn] notation, I dont want that!

Can anyone shed some light on how to overcome this, short of setting my prefs file to readonly?

Thanks

Joined: Mar 2004
Posts: 457
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Mar 2004
Posts: 457
hhmm, forum doesn't like control codes

on *:start:{ timestamp -f timestamphere }

Last edited by Danthemandoo; 28/11/04 05:18 AM.
Joined: Jun 2004
Posts: 11
P
Plasma Offline OP
Pikka bird
OP Offline
Pikka bird
P
Joined: Jun 2004
Posts: 11
Yeah just use (c) or something smile

Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
INI files can't store CTRL codes, and since mIRC saves it's settings to an ini file that information will be lost on next startup.

using the on start event Danthemandoo gave will enable mIRC to set it's timestamp on startup, which will be loaded to memory and used for the entire session. after closing mIRC the codes are removed but at next start the script will change the timestamp back to the coloured one.


If it ain't broken, don't fix it!
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
You can also put an identifier in the timestamp box, eg:

Code:
alias mycooltimestamp { return $+($chr(3),4,$chr(44),5,hh:nn) }


New username: hixxy

Link Copied to Clipboard