mIRC Homepage

prevent consolidated spaces in /msg /say etc.

Posted By: silimon

prevent consolidated spaces in /msg /say etc. - 26/03/07 01:03 AM

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?
Posted By: xDaeMoN

Re: prevent consolidated spaces in /msg /say etc. - 26/03/07 02:30 AM

Try using spaces.dll by Saturn.
Posted By: DJ_Sol

Re: prevent consolidated spaces in /msg /say etc. - 26/03/07 03:10 AM

does $chr(160) not work? $str($chr(160),5)
Posted By: RusselB

Re: prevent consolidated spaces in /msg /say etc. - 26/03/07 03:21 AM

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.
Posted By: Rand

Re: prevent consolidated spaces in /msg /say etc. - 30/03/07 02:26 AM

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.
© 2020 mIRC Discussion Forums