Jump to content
UBot Underground

Display Images In Ubot Browser


Recommended Posts

Hello ubotters,

 

Happy New Year to you all.

 

I am trying to display 10 images  in a folder 1 by 1 in the ubot browser but all I get is the text path and filename of the image. The image is not showing.

 

I copy the path and filename in a normal browser and i see the image as it should look rather than text.

 

This is the code I am using:

set(#get_images,$get files("{$special folder("Application")}\\images","Yes"),"Global")
clear list(%images_listings)
wait(1)
add list to list(%images_listings,$list from text(#get_images,$new line),"Delete","Global")
loop($list total(%images_listings)) {
    set(#next_item,$next list item(%images_listings),"Global")
    load html(#next_item)
    wait(2)
}
alert("done")

How can I display the images 1 by 1 please?

 

 

Please can someone help me?

 

Thanks

 

 

Link to post
Share on other sites

loading your image via your browser is totally not the same with loading image via html..

 

load html will load an html code, therefore you need to insert the correct html code for displaying image, which is

<img src=""/>

and it will take a lot more than that to show images one by one (carousel/slide/etc..)

Link to post
Share on other sites

add list to list(%ffff,$plugin function("Open.Framework.dll", "get files in folder", "C:\\Users\\stanford\\Downloads\\New folder (2)"),"Delete","Global")
set list position(%ffff,0)
loop($list total(%ffff)) {
    navigate($next list item(%ffff),"Wait")
    wait(5)
}

Link to post
Share on other sites

add list to list(%ffff,$plugin function("Open.Framework.dll", "get files in folder", "C:\\Users\\stanford\\Downloads\\New folder (2)"),"Delete","Global")

set list position(%ffff,0)

loop($list total(%ffff)) {

    navigate($next list item(%ffff),"Wait")

    wait(5)

}

Excellent - thanks very much stanf. That worked liked a charm.

Link to post
Share on other sites

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