Jump to content

Sending A Linefeed


Psych

Recommended Posts

Hi, I've been writing a bot myself using vbexpess, now I want a game add-in, but I cant send a linefeed in the PRIVMSG. Si I can list Halls Of Fame, etc.

 

Does anyone know the raw chars I have to send to get a linefeed to the channel?

 

Thanks in advance.

Link to comment
Share on other sites

  • Replies 27
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Chr(10)

 

I tried that, lol, it doesnt work. I've even tried using a PRIVMSG with no formatting.

 

Strange thing is, I've looked at other scripts, and they do use the chr(10) character, but when I send it, it doesn't give me a linefeed.

Link to comment
Share on other sites

Hi, I've been writing a bot myself using vbexpess, now I want a game add-in, but I cant send a linefeed in the PRIVMSG. Si I can list Halls Of Fame, etc.

 

Does anyone know the raw chars I have to send to get a linefeed to the channel?

 

Thanks in advance.

 

You are putting trivia in your room Psy?

Link to comment
Share on other sites

You are putting trivia in your room Psy?

 

I am thinking of having various game add ins for the bot, not necessarily the room, however the room will a testing ground for anything I publish, lol.

 

Back to the linefeed thing, would my encoding the linefeed into UTF8 make any difference?

Link to comment
Share on other sites

I am thinking of having various game add ins for the bot, not necessarily the room, however the room will a testing ground for anything I publish, lol.

 

 

 

Oh I know what you mean now.Thanks.

 

Link to comment
Share on other sites

Hi webby, I already have a linefeed variable as i need it to delimit the server text back and forth Chr(10) and Chr(13) or just VbCrLf.

 

The more I think about it the more I am convinced it must have something to do encoding, as I encode and decode server traffic using the UTF8 standard. I am going to investigate this first. It does have me at a loss I must say.

Link to comment
Share on other sites

Okay, it doesnt seem to have anything to do with encoding.

 

This is the string I am sending....

 

"PRIVMSG %#TESTROOM :S Tahoma;0 First Line" & Chr(10) & "Second Line"

 

Are we assuming this should work?

 

What I get on the screen is this...

 

BotNick : S Tahoma;0 First Line

 

Nothing else.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...