mIRC Homepage
Posted By: kwell Nick Completion - 18/09/07 04:51 PM
My english is bad, one question, my code is validate ?

Code:
on ^*:TEXT:*:*:{
 if ($nick isop $chan) { echo $chan « $+ @ $+ $nick » $1- | halt }
 if ($nick ishop $chan) { echo $chan « $+ % $+ $nick » $1- | halt }
 if ($nick isvoice $chan) { echo $chan « $+ + $+ $nick » $1- | halt }
 if ($nick ison $chan) { echo $chan « $nick » $1- | halt }
 { .echo $nick { « $nick » $1- | halt }
 }
}
 
Posted By: noMen Re: Nick Completion - 18/09/07 04:58 PM
It could be:
Code:
on ^*:TEXT:*:*:{
 if ($nick isop $chan) { echo $chan « $+ @ $+ $nick » $1- }
 if ($nick ishop $chan) { echo $chan « $+ % $+ $nick » $1- }
 if ($nick isvoice $chan) { echo $chan « $+ + $+ $nick » $1- }
 if ($nick isreg $chan) { echo $chan « $nick » $1- }
 halt
}

Ignore that strange A in front of <<, it happend when I copied and pasted your code.
Posted By: kwell Re: Nick Completion - 18/09/07 05:44 PM
tank you noMen other question ...
to maintain a left margin with any typography
Posted By: noMen Re: Nick Completion - 18/09/07 06:59 PM
Ehm... mirc doesn't allow for more than one space in a line unless you use special characters like $chr(160). But besides that, you have to know the length of the longest nickname but you never can be sure when new people arrive. Buenas noches smile
Posted By: vexed2 Re: Nick Completion - 18/09/07 07:17 PM
Code:
alias ontext {
  var %a $iif($2,$2,$chan),%x $iif($1 !isreg %a && $1 !ischan,+), %b $iif(%x,$left($nick(%a,$1).pnick,1)) $+ $1
  return $iif(%x,$+(,09,$left(%b,1))) $+ $str($chr(160),$calc(13 - $len(%b))) $+ $iif(%x,$+(01,$mid(%b,2,12)),$+(,01,$mid(%b,1,13)))
}

on *:INPUT:#: {
  if ($left($1,1) != /) { 
    haltdef
    .raw -q privmsg $active : $+ $1-
    echo $chan $+(03«,$ontext($me),03») $1-
  }
}

on ^1:TEXT:*:#:{ 
  echo $chan $+(03«,$ontext($nick),03») $1-
  halt
}


my bad, missed $1-
Posted By: noMen Re: Nick Completion - 18/09/07 07:34 PM
It misses the text they entered plus it doesn't put your own messages in the window but that can be solved easily. Now I see it can be done if you take the longest possible nickname into account. Very good vexed2.
Posted By: kwell Re: Nick Completion - 18/09/07 09:37 PM
the problem is in typography tahoma

Sorry for mi english
Posted By: vexed2 Re: Nick Completion - 19/09/07 02:28 AM
Tahoma font isn't fixed width.
you'd need to find one that is.
Posted By: kwell Re: Nick Completion - 19/09/07 07:50 PM
Eh seen ...
Font: Tahoma Font Style: Normal Size:8



frown
Posted By: vexed2 Re: Nick Completion - 19/09/07 09:06 PM
Well, my tahoma font is certainly not that one
when i say fixed width, it means every single character is the same width in pixels, and i know mine isn't.
even looking at your screenshot you can see that they aren't either.
So i can't help you there. And i noticed the | character seperating the nicknames from the text, I looked at the charmap and the | isn't broken, so either that's a different font or the pictyre has been doctered.
Posted By: kwell Re: Nick Completion - 20/09/07 03:38 AM
The remote belongs to ircap 8.3

Thx vexed2 saludos.
Posted By: schaefer31 Re: Nick Completion - 20/09/07 05:15 AM
Originally Posted By: vexed2
And i noticed the | character seperating the nicknames from the text, I looked at the charmap and the | isn't broken, so either that's a different font or the pictyre has been doctered.


It's not a different font, it's a different character entirely (166, broken bar).
Posted By: vexed2 Re: Nick Completion - 20/09/07 11:26 AM
I just downloaded it and took a look.
He is using Tahoma (which is still not a fixed width font)
He's made his own alias to align it, which looks quite complicated i think. Using $widths $calcs and $ints.
Sorry i can't help any further with it.
Personally i'd stick to a fixed width font using the code i pasted previously, much easier grin
Posted By: kwell Re: Nick Completion - 20/09/07 06:10 PM
tank you vexed2
-Suerte-
© mIRC Discussion Forums