Jump to content
UBot Underground

Loading images from a file...


Recommended Posts

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 by wouldjaball
Link to post
Share on other sites

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?  

Link to post
Share on other sites

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")
}
Link to post
Share on other sites
  • 4 weeks later...

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

Link to post
Share on other sites

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