Posted on

Download image from teepublic.com

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)
}

 

Posted on

Get List Variable Name, List Name, Table Name from ubot code

clear list(%Variable)
clear list(%List)
clear list(%Table)
set(#UbotCode,"set(#UbotCode,\"\",\"Global\")
set(#Debug,$table cell(&test,0,0),\"Global\")
set(#Debug2,$list item(%MyList,0),\"Global\")
","Global")
add list to list(%Variable,$find regular expression(#UbotCode,"#[\\w\\d\\s]+"),"Delete","Global")
add list to list(%List,$find regular expression(#UbotCode,"%[\\w\\d\\s]+"),"Delete","Global")
add list to list(%Table,$find regular expression(#UbotCode,"&[\\w\\d\\s]+"),"Delete","Global")

 

Posted on

Create image tile

add list to list(%ImagePaths,$get files("{$special folder("Application")}\\Images","Yes"),"Delete","Global")
plugin command("Advanced Image.dll", "image tile", %ImagePaths, "{$special folder("Application")}\\Column = 1.jpg", "Column = 1", 0, "FFFFFF")
plugin command("Advanced Image.dll", "image tile", %ImagePaths, "{$special folder("Application")}\\Column = -1.jpg", "-1", 0, "FFFFFF")
plugin command("Advanced Image.dll", "image tile", %ImagePaths, "{$special folder("Application")}\\Column = 2.jpg", 2, 0, "FFFFFF")
plugin command("Advanced Image.dll", "image tile", %ImagePaths, "{$special folder("Application")}\\Column = 2 & Gap = 2.jpg", 2, 2, "FFFFFF")

 

Posted on

Get variable name of max value

clear list(%Datas)
clear list(%Datas2)
add item to list(%Datas,"10.01,#comparison1_1","Don\'t Delete","Global")
add item to list(%Datas,"20.11,#comparison1_2","Don\'t Delete","Global")
add item to list(%Datas,"5.01,#comparison1_3","Don\'t Delete","Global")
add list to list(%Datas2,$plugin function("Advanced Data Text File.dll", "$list sort", %Datas, "Ascending", ""),"Delete","Global")
alert("Max value of variable name:

{$find regular expression($list item(%Datas2,0),"#.*")}")
stop script
set(#comparison1_2,$plugin function("Advanced Data Text File.dll", "$string compare", #image1, #image2, "Levenshtein"),"Global")
add item to list(%Datas,"{#comparison1_2},#comparison1_2","Don\'t Delete","Global")

 

Posted on

Scrape Amazon Large Image Url

navigate("https://www.amazon.com/dp/B00X4WHP5E","Wait")
wait for browser event("Everything Loaded","")
clear list(%ImageUrls)
add list to list(%ImageUrls,$scrape attribute(<src=w"https://images-na.ssl-images-amazon.com/images/I/*._SS40_.jpg">,"fullsrc"),"Delete","Global")
loop($list total(%ImageUrls)) {
    set(#ImageUrl,$next list item(%ImageUrls),"Global")
    navigate($replace(#ImageUrl,"_SS40_","_SS500_"),"Wait")
    wait(1)
}