mIRC Home    About    Download    Register    News    Help

Print Thread
#195129 18/02/08 03:33 AM
Joined: Nov 2007
Posts: 13
7
Pikka bird
OP Offline
Pikka bird
7
Joined: Nov 2007
Posts: 13
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,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
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,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net
Joined: Jan 2004
Posts: 509
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
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: 144
M
Vogon poet
Offline
Vogon poet
M
Joined: Aug 2003
Posts: 144
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: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

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

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

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


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net
Joined: Aug 2007
Posts: 334
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Aug 2007
Posts: 334
or u could use the BURC codes


This is not the signature you are looking for
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard