Jump to content
UBot Underground

Text File Content as a Variable?


Recommended Posts

Basically, I'm trying to write a bot where at multiple points I need to pull the entire content of a text file (an average of 50 to 100 lines) to insert into a textbox as one unchanged unit. In essence, a person would just copy/paste the contents. Is there a way inside of UBot to do this without manual entry? If you need more specific information or example text please let me know.

Link to post
Share on other sites

Hi there,

 

I would recommend you to go through the tutorials if you have not yet..

 

They can be found at :

http://ubotstudio.com/tutorials.aspx (Videos)

http://ubotblog.com (Text)

 

This can be easily done using lists, please go through the tutorials..

 

If you still have any doubts please write us back.

 

Cheers!

 

Praney

Link to post
Share on other sites

 

I would recommend you to go through the tutorials if you have not yet..

 

This can be easily done using lists, please go through the tutorials..

 

 

I have been through the tutorials (both text and video) and have done several searches both in this forum and in Google but have not found any mention of what I am trying to do.

 

Just to re-clarify, I am NOT trying to create a list to be entered in at multiple locations and I am NOT trying to take one or two lines out of the text.

 

I am trying to take ALL the text in a .txt file (I tried to upload an example but it kept failing) to enter into one textbox with no changes in the formatting, no returns removed, etc. I am trying to do this with multiple files throughout the bot. I have heard that this can be done using ubot but I cannot find anything about how to do it. I have experimented with every method I can think of in ubot and cannot figure it out. I'm sure I'm just not thinking about it in the right way and am missing something obvious...

Link to post
Share on other sites

I have been through the tutorials (both text and video) and have done several searches both in this forum and in Google but have not found any mention of what I am trying to do.

 

Just to re-clarify, I am NOT trying to create a list to be entered in at multiple locations and I am NOT trying to take one or two lines out of the text.

 

I am trying to take ALL the text in a .txt file (I tried to upload an example but it kept failing) to enter into one textbox with no changes in the formatting, no returns removed, etc. I am trying to do this with multiple files throughout the bot. I have heard that this can be done using ubot but I cannot find anything about how to do it. I have experimented with every method I can think of in ubot and cannot figure it out. I'm sure I'm just not thinking about it in the right way and am missing something obvious...

 

 

Why don't you set a $readfile constant to a variable and then fill the field with the variable?

 

Here is an example of what I'm talking about: Untitled.jpg

Try that.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...