mIRC Home    About    Download    Register    News    Help

Print Thread
#128953 31/08/05 05:47 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Is there any way of aligning text in sockets?

so
Code:
sockwrite -n bot NOTICE %client :Syntax: SHOWCOMMANDS ...
sockwrite -n bot NOTICE %client :Use: Tells you wha ....


returns

Code:
-bot- Syntax: SHOWCOMMANDS ...
-bot- Use:    Tells you wha ...


What do you do at the end of the world? Are you busy? Will you save us?
#128954 31/08/05 05:59 PM
Joined: Jun 2005
Posts: 44
B
BNX Offline
Ameglian cow
Offline
Ameglian cow
B
Joined: Jun 2005
Posts: 44
sockwrite -n bot NOTICE %client :Use: $chr(32) $chr(32) Tells you wha ....

$chr(32) will give you a space, since mirc ignores any white space after 1. So insert those until you get what you want.

#128955 31/08/05 06:19 PM
Joined: Jul 2005
Posts: 25
U
Ameglian cow
Offline
Ameglian cow
U
Joined: Jul 2005
Posts: 25
I advise you to use $chr(160)

Code:
sockwrite -n bot NOTICE %client :Use: $chr(160) $chr(160) Tells you wha ....


etc.

#128956 31/08/05 07:42 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
$chr(160) does *not* give white space on all fonts. It's not wise to use it if anyone else will be trying to see the output.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard