Using chapter split “pdf merge” command
Using chapter split “pdf merge” command
1 2 3 4 5 6 7 8 9 10 11 |
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") } |
Download image from teepublic.com
1 2 3 4 5 6 7 8 9 10 11 12 |
navigate("https://www.teepublic.com/en-gb/mug/1000159-downhill-mtb","Wait") wait for browser event("Everything Loaded","") wait(1) set(#Debug,$scrape attribute(<class="glide__slides">,"outerhtml"),"Global") load html(#Debug) clear list(%Debug) add list to list(%Debug,$scrape attribute(<tagname="img">,"fullsrc"),"Delete","Global") set(#Loop,0,"Global") loop($list total(%Debug)) { download file($next list item(%Debug),"{$special folder("Application")}\\Img_{#Loop}.jpg") increment(#Loop) } |
PDF to TIFF to IMAGE
Convert PDF to TIFF to IMAGE
1 2 |
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") |
A sample “humanize” typing text
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
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.#")) } |
Run define every X second
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
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}") } |