Posted on

Using chapter split “pdf merge” command

Using chapter split “pdf merge” command

clear list(%pdfFile)
add list to list(%pdfFile,$plugin function("Advanced Data Text File.dll", "$get files 2", $special folder("Application"), "*.pdf", "True", "Root Directory Only"),"Delete","Global")
set(#index,0,"Global")
loop($divide($list total(%pdfFile),10)) {
clear list(%Items)
add list to list(%Items,$plugin function("Advanced Data Text File.dll", "$list get range", %pdfFile, #index, 10),"Delete","Global")
set(#start,$plugin function("Advanced Data Text File.dll", "$regex find", $list item(%Items,0), "\\d+", "None", "-1"),"Global")
set(#end,$plugin function("Advanced Data Text File.dll", "$regex find", $list item(%Items,$subtract($list total(%Items),1)), "\\d+", "None", "-1"),"Global")
plugin command("Advanced Document.dll", "pdf merge", %Items, "{$special folder("Application")}\\{#start}-{#end}.pdf")
set(#index,$add(#index,10),"Global")
}

 

Posted on

PDF to TIFF to IMAGE

Convert PDF to TIFF to IMAGE

plugin command("Advanced Document.dll", "pdf to tiff", "{$special folder("Application")}\\LM555.pdf", "{$special folder("Application")}\\LM555.tiff")
add list to list(%Debug,$plugin function("Advanced Image.dll", "$image tiff converter", "{$special folder("Application")}\\LM555.tiff", "jpg", ""),"Delete","Global")

 

Posted on

A sample “humanize” typing text

load html("<!DOCTYPE html>
<html>
<body>

<h2>HTML Forms</h2>

<form action=\"\">
  First name:<br>
  <input type=\"text\" name=\"firstname\" value=\"\">
  <br>
  Last name:<br>
  <input type=\"text\" name=\"lastname\" value=\"\">
  <br><br>
  <input type=\"submit\" value=\"Submit\">
</form> 

<p>If you click the \"Submit\" button, the form-data will be sent to a page called \"/action_page.php\".</p>

</body>
</html>")
set(#Debug,"Apichai P.","Global")
clear list(%Debug)
add list to list(%Debug,$plugin function("Advanced Data Text File.dll", "$string to chars", #Debug),"Don\'t Delete","Global")
set list position(%Debug,0)
loop($list total(%Debug)) {
    set(#Item,$next list item(%Debug),"Global")
    type text(<first name field>,#Item,"Standard")
    wait($plugin function("Advanced Data Text File.dll", "$random", 0.1, 0.5, "Decimal", "0.#"))
}

 

Posted on

Run define every X second

on load("Bot Loaded") {
    set(#dateTime,$date,"Global")
}
ui drop down("Hours:","1,2",#Hours)
ui stat monitor("Remaining",#remaining)
set(#dateTime,$plugin function("Advanced DateTime.dll", "$datetime increment", 0, 0, 0, #Hours, 0, 0, 0, $date, "UBOT (MM/dd/yyyy HH:mm:ss)", "UBOT (MM/dd/yyyy HH:mm:ss)"),"Global")
comment("Run defind \"DoSomething\" every 10 second")
thread {
    loop while($true) {
        set(#remaining,$plugin function("Advanced DateTime.dll", "$datetime count up/down", #dateTime, "UBOT (MM/dd/yyyy HH:mm:ss)", "hh:m:s"),"Global")
        if($comparison(#remaining,"= Equals","00:00:00")) {
            then {
                DoSomething()
                set(#dateTime,$plugin function("Advanced DateTime.dll", "$datetime increment", 0, 0, 0, #Hours, 0, 0, 0, $date, "UBOT (MM/dd/yyyy HH:mm:ss)", "UBOT (MM/dd/yyyy HH:mm:ss)"),"Global")
            }
            else {
            }
        }
        wait(1)
    }
}
set(#Count,0,"Global")
define DoSomething {
    increment(#Count)
    alert("Compile: {#Count}")
}

 

Posted on

You need to create a proxy checker.

if($ProxyCheck("13.92.196.150:8080")) {
    then {
        alert("Proxy work")
    }
    else {
        alert("Proxy not work")
    }
}
define $ProxyCheck(#IP_Port) {
    plugin command("Advanced Connection.dll", "socket referer", "https://proxy6.net/en/checker")
    plugin command("Advanced Connection.dll", "socket user agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36")
    plugin command("Advanced Connection.dll", "socket add header", "X-Requested-With", "XMLHttpRequest")
    add list to list(%IP_Port,$plugin function("Advanced Data Text File.dll", "$split", #IP_Port, ":", "Equals"),"Delete","Local")
    plugin command("Advanced Connection.dll", "socket add content", "FormUrlEncoded", "country_detect=0&item%5B%5D={$list item(%IP_Port,0)}&item%5B%5D={$list item(%IP_Port,1)}", "UTF-8")
    set(#report,$plugin function("Advanced Connection.dll", "$socket request", "https://proxy6.net/checker/check", "POST", "Form Url Encoded"),"Local")
    plugin command("Advanced Connection.dll", "socket close")
    return($contains(#report,"success"))
}