mIRC Home    About    Download    Register    News    Help

Print Thread
#68770 21/01/04 01:24 PM
K
Konerak
Konerak
K
When I use Custom Windows ( @windows ), and use ALINE, mIRC will 'strip' multiple spaces to ONE space. How do I work around that? It's quite annoying, and VERY ugly.

TIA.

#68771 21/01/04 01:26 PM
Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
/help binary variables

#68772 21/01/04 01:34 PM
Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
You can either use $chr(160) that is a white space in many fonts, or insert a pair of CTRL+B - $chr(2) - between continuous spaces.

For example:

//window @a | aline @a $str($chr(160),10) $+ Hello
//window @b | aline @b $str($+($chr(32),$str($chr(2),2)),10) $+ World

#68773 21/01/04 01:59 PM
K
Konerak
Konerak
K
Original Code:
on 1:notice:*:*:{
if ( $nick == ChanServ ) {
window -e @channie
aline @channie $1-
halt
}
}
New Code:
on 1:notice:*:*:{
if ( $nick == ChanServ ) {
window -e @channie
aline @channie $replace($1-,$chr(32),$chr(160))
halt
}
}
Alas, output is the same. Within the $1-, the spaces are _already_ gone I guess.
The binvar looks sweet, but how do I use it for this example?


#68774 21/01/04 05:53 PM
I
Iori
Iori
I
Try this "$text" identifier by qwerty
Code:
alias text var %a | !.echo -q $regsub($right($rawmsg,- $+ $pos($rawmsg,:,2)),/(?<= |^)(?= )/g,,%a) | return %a
on *:notice:*:*:{
  if ($nick == ChanServ) {
    window -e @channie
    aline @channie $text
    halt
  }
}

#68775 22/01/04 12:28 AM
K
Konerak
Konerak
K
Very Nice work!
Thanks for posting, and thanks to the author for creating it : )

Last edited by Konerak; 22/01/04 12:29 AM.

Link Copied to Clipboard