Thursday, October 29, 2015

Wait page by search page command

set(#TimeOut,0,"Global")
loop while($both($not($search page("Video")),$comparison(#TimeOut,"< Less than",10))) {
    comment("Do something")
    wait(1)
    increment(#TimeOut)
}
if($comparison(#TimeOut,"= Equals",10)) {
    then {
        alert("Not found")
    }
    else {
        alert("Found")
    }
}

Saturday, October 24, 2015

Ubot Studio Code Word Split

clear all data
set(#spliteCount,25,"Global")
set(#words,"We\'ve done everything we can to make UBot Studio as easy to learn as possible. Now it\'s up to you. Make an investment into yourself. Start small with a few hours of training and watch as your potential unfolds.

- Seth Turin

Watch these bite-sized sessions once you\'ve made your purchase. You\'ll simply walk through the concepts of automation and how to implement it in UBot Studio.
Don\'t start from scratch ! Here are several useful pre-made automation solutions for you. More are available in our Bot Bank (inside the software) and the forum.
Visit the UBot Studio Wiki for frequently updated information on UBot Studio commands, features, and ideas for use! Then, visit the Playground to test out these commands and functions! ","Global")
set(#words,$replace(#words,$new line," "),"Global")
loop while($comparison($plugin function("Advanced Data Text File.dll""$word count"#words),">= Greater than or equal to",#spliteCount)) {
    set(#WordsOut,$plugin function("Advanced Data Text File.dll""$substring word"#words, 0, #spliteCount" "),"Global")
    set(#words,$replace(#words,#WordsOut,""),"Global")
    add item to list(%Slides,#WordsOut,"Don\'t Delete","Global")
}
add item to list(%Slides,#words,"Don\'t Delete","Global")