|
|
7thHeaven
|
7thHeaven
|
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
Hoopy frood
|
Hoopy frood
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
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
LostShadow
|
LostShadow
|
| 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: Dec 2002
Posts: 1,995
Hoopy frood
|
Hoopy frood
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
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,884 |
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
Hoopy frood
|
Hoopy frood
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
Pan-dimensional mouse
|
Pan-dimensional mouse
Joined: Aug 2007
Posts: 331 |
or u could use the BURC codes
|
|
|
|
Joined: Oct 2004
Posts: 8,061
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
|
|