botsimmer 16 Posted January 6, 2017 Report Share Posted January 6, 2017 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 Quote Link to post Share on other sites
zozo31 10 Posted January 6, 2017 Report Share Posted January 6, 2017 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..) Quote Link to post Share on other sites
stanf 43 Posted January 6, 2017 Report Share Posted January 6, 2017 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)} Quote Link to post Share on other sites
botsimmer 16 Posted January 7, 2017 Author Report Share Posted January 7, 2017 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. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.