mIRC Homepage
Posted By: Fey text line beggining if the msg doesn't fit - 14/10/04 06:42 PM
This is quite hard to explain, but i'll direct you to the screenshot.
This screenshot shows how users messages are handled if they don't fit the windows lentgh. the next line of text is beggining right after users nick, makin it look nice and less confusing. I was wondering if it would be possible to do this in mirc, but i couldn't find the right handles. Anyone knows?
Code:
on ^*:text:*:#:{
  echo -tci $+ $calc($len($nick) + 3) Normal $chan $+(<,$nick,>) $1-
  haltdef
}
I suppose you are already using a kind of theme that halts default text and tampers with it!

There will be an echo command there that echoes the text to the channel window. You could add a -i switch to that echo command depending on how the nick appears. For example if you have the common appearance:
<nick> text text text
then you should use something like echo -i $+ $calc( $len($nick) + 3 )
(plus any other echo switches)

+3 goes there for the < and > signs (2) plus a space after the >
I hate you and love you at the same time! :tongue:
Posted By: Fey Re: text line beggining if the msg doesn't fit - 14/10/04 07:10 PM
Thanks guys, this works! smile
© mIRC Discussion Forums