mIRC Home    About    Download    Register    News    Help

Print Thread
#26616 28/05/03 12:01 PM
Joined: May 2003
Posts: 29
C
Ameglian cow
OP Offline
Ameglian cow
C
Joined: May 2003
Posts: 29
Does some1 knows how to align inputed text and text said by others?

I use:
Code:
on ^*:TEXT:*:#: {
  echo $color(normal text) -tlmi2 $chan < $+ $nick $+ > $+ $char(9) $+ $char(9) $strip($1-,m)
  haltdef
}

So i want that every lign includes two tabs so that the text in the channel are aligned to the left after the nick. Like this:
Code:
<Chandler>      Hi all
<somelongern>   Hi Chandler 

Last edited by Chandler; 28/05/03 12:02 PM.
#26617 28/05/03 12:19 PM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
that is imposible in channel windows, u can do that only with custom windows.
there is a way to do that with $chr(160) like $str($chr(160),8)

#26618 28/05/03 12:45 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
$str($chr(160),$calc(10 - $len($nick)))


Code:
//if ( khaled isgod ) echo yes | else echo no
#26619 28/05/03 01:14 PM
Joined: May 2003
Posts: 29
C
Ameglian cow
OP Offline
Ameglian cow
C
Joined: May 2003
Posts: 29
Ok, it almost is like i want it too, but there has to be something else, so that behind every nick he uses the same space...

Like in my example... What TheRat suggested puts the text at a certain space from the nick, but when the nick is longer, he put's it further away. Isn't there a command that finds the longest nick? confused grin

#26620 28/05/03 01:37 PM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
the length of the nick is $len($nick)

#26621 28/05/03 02:58 PM
Joined: May 2003
Posts: 29
C
Ameglian cow
OP Offline
Ameglian cow
C
Joined: May 2003
Posts: 29
That i allready knew :tongue:

I want someting that can find the longest nick in the chan... ie. Chandler, someothernick and Scatman are in channel #nick, then i would like that a script would find that someothernick is the longest one, puts it in a variable and puts it in the
Code:
*,$calc(10-%variable)

#26622 28/05/03 03:33 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
You can look for the NICKLEN param in RAW 005


Code:
//if ( khaled isgod ) echo yes | else echo no
#26623 28/05/03 03:50 PM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
...and if it not present, assume 9.

#26624 28/05/03 04:55 PM
Joined: May 2003
Posts: 29
C
Ameglian cow
OP Offline
Ameglian cow
C
Joined: May 2003
Posts: 29
Thnx for the tips

#26625 28/05/03 09:13 PM
Joined: Dec 2002
Posts: 580
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
ScatMan, You can use $chr(160) in a channel window...


NaquadaBomb
www.mirc-dll.com

Link Copied to Clipboard