Jump to content
UBot Underground

Can Ubot Generate Sentences Using Variable?


Recommended Posts

Hi!

 

Please see attached file. This is just a quick example. You can also have it saved as a text file (command: save to file), or use the command "alert":

ui text box("Input cat\'s name:",#name)
ui button("Generate") {
    load html("1. I have a cat, her name is {#name}.<br>
2. {#name} loves to play ball.<br>
3. I pet {#name} last year.")
}

Marton

cat.ubot

  • Like 1
Link to post
Share on other sites

Hi!

 

Please see attached file. This is just a quick example. You can also have it saved as a text file (command: save to file), or use the command "alert":

ui text box("Input cat\'s name:",#name)
ui button("Generate") {
    load html("1. I have a cat, her name is {#name}.<br>
2. {#name} loves to play ball.<br>
3. I pet {#name} last year.")
}

Marton

Thanks Marton.

You're a lifesaver !

Link to post
Share on other sites
  • 1 month later...

How to export the load html into text file? I mean, save as text.txt

 

Hi!

 

Please see attached file. This is just a quick example. You can also have it saved as a text file (command: save to file), or use the command "alert":

ui text box("Input cat\'s name:",#name)
ui button("Generate") {
    load html("1. I have a cat, her name is {#name}.<br>
2. {#name} loves to play ball.<br>
3. I pet {#name} last year.")
}

Marton

Link to post
Share on other sites

In this case I would not save the contents of the generated html, but rather use the command "save to file" (please use the search box in Ubot to find it easily). You can insert it after the load html command (or instead of it).

 

Simply input the file path and filename (example: C:\example.txt), and use the same content you used in the load html command.

 

I would recommend that you go over some of the basic tutorials (videos) to learn Ubot. And you can of course always consult the Ubot wiki for help with a specific command.

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...