DarkAngel 10 Posted June 20, 2010 Report Share Posted June 20, 2010 I am creating a bot for a social network in which I need to upload a random image from a folder in each account that the bot creates. Is it possible to do this? If so, can somebody help me? I am new to uBot. Actually, it is a pain to manually open each account and then upload an image to it. Thanks,Krish Quote Link to post Share on other sites
alcr 135 Posted June 20, 2010 Report Share Posted June 20, 2010 How are the files named? If it is fileX where X is a number, then just go like:Set #variable 1loop total number of filesuploadc:\filepath\file{1}.avi where {1} points to #variable inc #variable Quote Link to post Share on other sites
DarkAngel 10 Posted June 21, 2010 Author Report Share Posted June 21, 2010 Thanks. I figured it out. I created a batch file to generate the list of images in the folder, and I use a random item from the list with the "Change File Field Chosen" command. Quote Link to post Share on other sites
alcr 135 Posted June 21, 2010 Report Share Posted June 21, 2010 Nice! I'm glad that you solved it! Psst: Would be cool if you posted that batch file (or a guide how to write one) in the tutorials tips and tricks section! I'm sure a big part of the community would appreciate it! Quote Link to post Share on other sites
DarkAngel 10 Posted June 23, 2010 Author Report Share Posted June 23, 2010 Nice! I'm glad that you solved it! Psst: Would be cool if you posted that batch file (or a guide how to write one) in the tutorials tips and tricks section! I'm sure a big part of the community would appreciate it! Done that! 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.