Spiced 1 Posted May 3, 2016 Report Share Posted May 3, 2016 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 Quote Link to post Share on other sites
Pete 121 Posted May 3, 2016 Report Share Posted May 3, 2016 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) } 1 Quote Link to post Share on other sites
pash 504 Posted May 4, 2016 Report Share Posted May 4, 2016 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" 1 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.