mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2007
Posts: 66
B
beer Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Jul 2007
Posts: 66
I've been trying to figure out a better way to text with spaces. Until now I've always added spaces with a space and two ctrl-k's (bold) afterwards. Then rinse & repeat for however many spaces I wanted to pad. I know simply adding $chr(32)'s won't work cuz msg/notice will just strip them out. I read you can achieve this by using a bvar but I couldn't get that to work either.

Is there any way other than using space+ctrl-k+ctrl-k to do this?

Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
There's no way to do that, the control + k workaround is ugly but it's there.. you can also use $chr(160) instead of $chr(32), which is a non breakable space, which does the job.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Jul 2007
Posts: 66
B
beer Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Jul 2007
Posts: 66
That's what I figured. Thanks for the clarity!

Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
http://xise.nl/mirc/wiki/doku.php/doku.php?id=spaces
http://xise.nl/mirc/wiki/doku.php/doku.php?id=spacealt

Some nice articles about spaces and their preservation, it's an old article mentioning old rules ($chr(160), with unicode, is now working 100% of time, before, a font may have a different character.) but is still relevant

Last edited by Wims; 20/10/19 09:21 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard