ukscotth 1 Posted August 3, 2010 Report Share Posted August 3, 2010 Hi, Im using ubot to post messages on sites and it gets the messages from loading a file into a list. Is there a way I can format the messages in the txt file so they appear on the sites with spaces e.g I want the messages to appear with spaces once they are posted on the sites. e.g Hello, Blaaah, blah blah. Thanks. Would this be easy to do ? I'm looking for something similar to <br> that would work with ubot. Quote Link to post Share on other sites
Guest CiCiMagee Posted August 3, 2010 Report Share Posted August 3, 2010 Hello ukscotth, Under text variables, there is the $newline constant. Which works the same as <br>. Quote Link to post Share on other sites
ukscotth 1 Posted August 3, 2010 Author Report Share Posted August 3, 2010 Ok cool, but how can I put that in my txt file ? If you see what I mean Quote Link to post Share on other sites
IRobot 43 Posted August 3, 2010 Report Share Posted August 3, 2010 Add the $newline after each message in the list you mentioned in post #1. Quote Link to post Share on other sites
ukscotth 1 Posted August 3, 2010 Author Report Share Posted August 3, 2010 Ok thanks, I want to do it all in the txt file. Could I use something like this to include line breaks in each message ?test.txt Quote Link to post Share on other sites
MiriamMB 63 Posted August 3, 2010 Report Share Posted August 3, 2010 so do you have a whole bunch of different brief paragraphs you are trying to randomly input into a field or is it just one brief paragraph? Quote Link to post Share on other sites
ukscotth 1 Posted August 3, 2010 Author Report Share Posted August 3, 2010 bunch of paragraphs idealy yep Quote Link to post Share on other sites
MiriamMB 63 Posted August 4, 2010 Report Share Posted August 4, 2010 ok, i have attached an example of what you could do in a .zip file. I think it does what you are trying to accomplish.Testing.zipLet me know if it doesn't meet up to what you want and I'll tweak it for you. Quote Link to post Share on other sites
ukscotth 1 Posted August 4, 2010 Author Report Share Posted August 4, 2010 thanks lilly, looks good il give it a try Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.