mIRC Homepage
Posted By: Nanaki Control Codes in Timestamp - 15/07/04 03:08 PM
If I add mIRC's control codes (In this case bold, but also underline, reverse and colours) to the timestamp, they display for a brief period of time, then revert back to how it was before without the control codes. This usually happens when mIRC is restarted, but sometimes happens anyway.

A bug? Does anyone else have this problem, or is it just me?

Edit: Oops. Should have made this thread in "Bug Reports" really... ah well.
Posted By: Fibsi Re: Control Codes in Timestamp - 15/07/04 03:22 PM
I think this is a (known) problem, cause mIRC does not write Color Codes to mirc.ini.

you can handle this by
Code:
on *:START: /timestamp [-fs|a|e] [on|off|default] [windowname]

The -f switch allows you to set the timestamp format, eg. /timestamp -f [HH:nn]

edit:

or maybe (also) on *:OPEN:*:*:
Posted By: Coolkill Re: Control Codes in Timestamp - 15/07/04 03:35 PM
Just to add, not just mirc.ini - mIRC does not write colour codes to ini files at all (using /writeini of course).

Eamonn.
Posted By: Fibsi Re: Control Codes in Timestamp - 15/07/04 06:14 PM
Right, here's a workaround for non-mirc.ini ini Files (remember: do not use /writeini on mirc.ini):
Code:
alias writeini2 writeini $1 $2 $3 $replace($remove($4-,^),,^O,,^B,,^U,,^K)
alias readini2 return $replace($readini($1,$2,$3),^O,,^B,,^U,,^K,)


^B = Bold
^U = Underline
^R = Reverse
^K = Color
^O = Resets all Codes
© mIRC Discussion Forums