wouldjaball 5 Posted May 24, 2013 Report Share Posted May 24, 2013 (edited) Hello all, any ideas or suggestions are welcome. I am trying to get a bot that will upload images from a folder that will be housed on the desktop. Let's say there is a folder with 10 .jpeg files in it. On the first loop I want the bot to pull the first Image, then move on to the second etc...Ideally the image would be removed from the folder once used. How can I accomplish this, and have a future user select the location of their picture folder from the UI? Is this possible? Please note, the website I am uploading to has you insert an image like this: http://gyazo.com/d0906f675d437234bd1b9612ffd46a32 Thanks! Edited May 24, 2013 by wouldjaball Quote Link to post Share on other sites
north_star 16 Posted May 24, 2013 Report Share Posted May 24, 2013 off course its possible, just simply make a list from your image file, and upload it with loop command. Quote Link to post Share on other sites
wouldjaball 5 Posted May 30, 2013 Author Report Share Posted May 30, 2013 Any example of this? Not sure what you mean when you say make a list from your image file. When I have a folder with images in it and I want to make a list from it, how would that work? Quote Link to post Share on other sites
ds062692 19 Posted May 30, 2013 Report Share Posted May 30, 2013 add list to list(%images, $get files("{$special folder("Desktop")}\\Folder Name", "Yes"), "Delete", "Global") loop($list total(%images)) { comment("Upload procedure goes inside the loop") } Quote Link to post Share on other sites
newcoder 5 Posted June 26, 2013 Report Share Posted June 26, 2013 Any example of this? Not sure what you mean when you say make a list from your image file. When I have a folder with images in it and I want to make a list from it, how would that work? you need learn ubot functions please go here and learn before coding or getting ur questions here http://www.ubotstudio.com/tutorials Quote Link to post Share on other sites
kiseki 0 Posted June 26, 2013 Report Share Posted June 26, 2013 (edited) try this clear list(%images)add list to list(%images, $get files("{$special folder("Desktop")}\\your folder", "Yes"), "Don\'t Delete", "Global")loop($list total(%images)) { navigate("http://yourwebsite.com/", "Wait") wait(2) change file field(<name="img_name_input[1]">, $next list item(%images))}change the "change file field (<your scrape attribute">I just edited from ds062692's Code so if this work Thank him... Edited June 26, 2013 by kiseki 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.