mIRC Homepage
Posted By: LostKiller HELP!! sockwrite many $chr(32)'s - 31/12/04 05:23 AM
Help, i tried everything and mIRC strips out all but the last one space of a line

eg when i sockwrite Hello world
i get back: Hello world

and when i sockwrite Hello $chr(32) $chr(32) $chr(32) wold
i get back the message with all spaces striped out.

i need the char 32 and not 160 or any similar

i tried sockwrite -tn
also i tried sockwrite $crlf and any other common way, but nothing seems to work.

mad frown frown

is there ANY way to send the server that char repeated ?

Note: for ASCII art throu socket
Posted By: LostKiller Re: HELP!! sockwrite many $chr(32)'s - 31/12/04 05:27 AM
Well.. the forum seems to get them striped out also

eg Hello ____________________ Wold
i get back Hello word
Posted By: tidy_trax Re: HELP!! sockwrite many $chr(32)'s - 31/12/04 01:19 PM
Use binary variables.

Code:
alias bsockwrite {
  bset &buffer 1 $$2-
  sockwrite $1 &buffer
}


/bsockwrite <socket name> <ascii value> [ascii value] [etc]

eg. /bsockwrite asciiart 104 101 108 108 111 32 32 32 32 32 32 32 32 32 32 119 111 114 108 100

This will send "hello__________world" through the "asciiart" socket.
© mIRC Discussion Forums