mIRC Home    About    Download    Register    News    Help

Print Thread
#195129 18/02/08 03:33 AM
7
7thHeaven
7thHeaven
7
This doesn't work... (in fact, doesn't display it here in the right way)

on 1:TEXT:*menu1*:#: {
/msg $chan _ _
/msg $chan | | (_)
/msg $chan | |__ __ _ _ __ ___ _
/msg $chan | '_ \ / _` | '_ ` _ \| |
/msg $chan | |_) | (_| | | | | | | |
/msg $chan |_.__/ \__,_|_| |_| |_|_|
}

It displays: _ _
(spaces are removed, | on the next line is seen as a pipeline
symbol)

How can I display this right?

Greets, -=7th Heaven=-

Joined: Oct 2005
Posts: 1,671
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,671
mIRC strips consecutive spaces. This is by design and isn't optional. There are extreme ways around it, but they involve using DLLs.

-genius_at_work

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
There are ways around it, such as using /play. For example, I have Invision set up to allow pasting ASCII art with correct spacing by just /play'ing the clipboard.

Alternatively, spaces.dll is a good method.

L
LostShadow
LostShadow
L
Originally Posted By: 7thHeaven
| on the next line is seen as a pipeline
symbol)

How can I display this right?

Greets, -=7th Heaven=-


Use the $chr() value for the | symbol.

I've never tested, but I wonder if you can use $chr(32) in regards to the spaces.

Joined: Aug 2003
Posts: 143
M
Vogon poet
Offline
Vogon poet
M
Joined: Aug 2003
Posts: 143
Hi

Not $chr(32) but you can use $chr(160)

It´s almost the same as a space.

You can check here other ascii values

http://www.roubaixinteractive.com/PlayGround/Binary_Conversion/The_Characters.asp

Last edited by Miguel_A; 18/02/08 05:39 PM.
Joined: Dec 2002
Posts: 1,995
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 1,995

The key word in your reply being "almost", 160 does not resemble 32 in all fonts.

Joined: Dec 2002
Posts: 2,884
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,884
Quote:
160 does not resemble 32 in all fonts.

If the sender uses UTF-8 (and the receiver supports it) it will.

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
True, but a lot of people don't. Do you (not you in particular) want to have a script that may output your text looking like this?

Thisᦒᦒᦒᦒᦒᦒisᦒᦒᦒᦒᦒᦒsomethingᦒᦒᦒᦒᦒᦒfilled
ᦒᦒᦒᦒᦒᦒᦒᦒᦒᦒᦒᦒᦒwithᦒᦒᦒᦒᦒspaces
ᦒᦒᦒᦒᦒᦒsoᦒᦒᦒᦒthatᦒᦒᦒᦒitᦒᦒᦒᦒlooks
ᦒᦒᦒᦒᦒᦒᦒᦒᦒᦒᦒᦒᦒcentered

Even if it only affects 5% of the people, do you want people to think your script is bad just because you feel the need to use $chr(160) instead of one of the other methods that work well?

Personally, I'd rather use a method that doesn't require using something that won't look good for everyone. /play and spaces.dll can be very helpful.

Joined: Aug 2007
Posts: 331
F
Pan-dimensional mouse
Offline
Pan-dimensional mouse
F
Joined: Aug 2007
Posts: 331
or u could use the BURC codes

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Yes, though that adds characters to a line, which can shorten the length of the line you can have. It would also run into issues on channels that block control codes. Still, I prefer that method to the $chr(160). $chr(160) should be a last resort, imo.


Link Copied to Clipboard