Jump to content
UBot Underground

UBot4 code snippets


Recommended Posts

if($both($not($contains(#variable, "some text"), ($both($not($contains(#variable, "some other text"))))) }

then { do something

 

----

 

if($comparison(#variable, "!=", $nothing)) {

then { do something

 

----

 

loop while($not($search page("whatever"))) {

wait(1) }

---

Link to post
Share on other sites

click(<value=w"{#variable}">, "Left Click", "No")

---

wildcard if exists

if $exists(<innertext=w"Article">)

-----

 

download files

Start the download, and then use the "$get files" function to check whether the file exists in your download directory

 

---

 

multiple threads:

 

ui drop down("Threads", "1,2,3,4,5,6,7,8,9,10", #threads)

loop(#threads) {

thread {

in new browser {

navigate("http://www.bing.com", "Wait")

}

}

wait(2)

}

 

---

Link to post
Share on other sites

loop through a table, at column position #0, for the total number of rows in the table and increment 1 row at a time

 

loop($table total rows(&yourtable)) {
   navigate("$table cell(&yourtable, #rownumbervariable, 0)", "Wait")
   increment(#rownumbervariable)
}

 

ui checkbox

ui check box("go to google", #go to google)
if(#go to google) {
   then 
{
       navigate("google.com", "Wait")
   }
   else {
       navigate("yahoo.com", "Wait")
   }
}

Link to post
Share on other sites

spin text

 

loop(5) {
   set(#googsearch, $spin("\{Make money|Create income|Become rich|3 dogs and a fish|a bowl  of porridge oats|wet Wednesday|Millionaires online\}"), "Global")
   navigate("google.com", "Wait")
   type text(<name="q">, #googsearch, "Standard")
   wait(3)
}

Link to post
Share on other sites
  • 3 weeks later...

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