Psych Posted June 29, 2007 Report Share Posted June 29, 2007 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 More sharing options...
Webagent007 Posted June 29, 2007 Report Share Posted June 29, 2007 Chr(10) Link to comment Share on other sites More sharing options...
Psych Posted June 29, 2007 Author Report Share Posted June 29, 2007 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 More sharing options...
iLia Posted June 29, 2007 Report Share Posted June 29, 2007 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 More sharing options...
Psych Posted June 29, 2007 Author Report Share Posted June 29, 2007 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 More sharing options...
iLia Posted June 29, 2007 Report Share Posted June 29, 2007 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 More sharing options...
Webagent007 Posted June 29, 2007 Report Share Posted June 29, 2007 dim EndOfLine as string EndOfLine = chr(13) & chr(10) ' = \n 'if you want to print something like 'Hello\nWorld debug.print "Hello" & EndOfLine & "World" have you tried that? Link to comment Share on other sites More sharing options...
Psych Posted June 29, 2007 Author Report Share Posted June 29, 2007 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 More sharing options...
Psych Posted June 29, 2007 Author Report Share Posted June 29, 2007 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 More sharing options...
Pyscho Posted June 30, 2007 Report Share Posted June 30, 2007 (edited) <-- is that chr(1) ? Edited June 30, 2007 by Pyscho Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now