mIRC Home    About    Download    Register    News    Help

Print Thread
#68770 21/01/04 01:24 PM
Joined: Jan 2004
Posts: 3
K
Konerak Offline OP
Self-satisified door
OP Offline
Self-satisified door
K
Joined: Jan 2004
Posts: 3
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,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
/help binary variables


New username: hixxy
#68772 21/01/04 01:34 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
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
Joined: Jan 2004
Posts: 3
K
Konerak Offline OP
Self-satisified door
OP Offline
Self-satisified door
K
Joined: Jan 2004
Posts: 3
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
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
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
Joined: Jan 2004
Posts: 3
K
Konerak Offline OP
Self-satisified door
OP Offline
Self-satisified door
K
Joined: Jan 2004
Posts: 3
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