mIRC Home    About    Download    Register    News    Help

Print Thread
prevent consolidated spaces in /msg /say etc. #173562 26/03/07 01:03 AM
Joined: Mar 2007
Posts: 40
S
silimon Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Mar 2007
Posts: 40
Hello, I'm a novice and just having a small issue with some macros. I need to be able to use sequencial spaces in /msg or /say without mIRC consolidating them into one space.

i.e.

/msg # blah (imagine several spaces) blah

which will output as;

blah blah

I want all the spacing to stay. Any ideas?

Re: prevent consolidated spaces in /msg /say etc. [Re: silimon] #173566 26/03/07 02:30 AM
Joined: Mar 2005
Posts: 420
X
xDaeMoN Offline
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Re: prevent consolidated spaces in /msg /say etc. [Re: silimon] #173569 26/03/07 03:10 AM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
does $chr(160) not work? $str($chr(160),5)

Re: prevent consolidated spaces in /msg /say etc. [Re: DJ_Sol] #173571 26/03/07 03:21 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
depends on the font being used. In most fonts, $chr(160) looks like a space character, but not all.
This is part of the reason spaces.dll was created.

Re: prevent consolidated spaces in /msg /say etc. [Re: DJ_Sol] #173782 30/03/07 02:26 AM
Joined: Feb 2005
Posts: 342
R
Rand Offline
Fjord artisan
Offline
Fjord artisan
R
Joined: Feb 2005
Posts: 342
Aside from what RusselB mentioned, $chr(160) is not a space. It just looks like one. Personally I don't believe it is a viable way of inserting spaces into your own text, nor a good way to put spaces into incoming text (especially if you wish to use tools like "grep" to search the text).

The DLL mentioned above is an excellent tool, which I've been using for quite some time.