Jump to content
UBot Underground

Recommended Posts

First of all i want to thank you for taking the time reading this.

I've just started playing with ubot and i'm still in the process of wrapping my head around things.

 

My problem is when i try to type a text from a file where everything is in spintax  the spintax command won't work, everything is written as in the file

 

What am i doing wrong  ?

 

http://i.imgur.com/IE5k0wY.png

Link to post
Share on other sites


navigate("http://ubotsandbox.com/text-area-box.php","Wait")
wait for element(<name="comment">,"","Appear")
loop(6) {
type text(<name="comment">,$spin("\{First of all i want to thank you for taking the time reading this.|I\'ve just started playing with ubot and i\'m still in the process of wrapping my head around things.|My problem is when i try to type a text from a file where everything is in spintax the spintax command won\'t work, everything is written as in the file|What am i doing wrong ?\}"),"Standard")
wait(3)
}

 

  • Like 1
Link to post
Share on other sites
alert($CreateSpinSyntax("you file path 1
you file path 2
you file path 3"))


define $CreateSpinSyntax(#_text) {
    set(#_text,$replace regular expression(#_text,"\\n","|"),"Local")
    return("\{{#_text}\}")
}

try change "type text" to "change attribute"

  • Like 1
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...