CanaDutch 0 Posted February 20, 2011 Report Share Posted February 20, 2011 For some hours now I've been trying to fix a certain problem I'm having. For the bot I'm creating I want to be able to use spun usernames from a text/csv file during an account sign up, and have ubot save which username was used during a particular run in a new text/.csv file. Since it seems I'm unable to attach my ubot file I added a screenshot instead of what I'm trying to do. Thanks in advance!http://img189.imageshack.us/img189/7663/testbmj.jpg Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted February 20, 2011 Report Share Posted February 20, 2011 Have you tried moving the last save file into the end of the account creator sub?Might be losing the list before entering the new sub routine. Quote Link to post Share on other sites
CanaDutch 0 Posted February 20, 2011 Author Report Share Posted February 20, 2011 I moved the 'save to file' node into the account creator node as you suggested, but unfortunately it didn't help. The bot is still unable to scrape the field where the bot puts a spun username in. The text file it creates has only a break instead of the used username. Also removing the use of subs entirely didn't help. Also what I tried in the image below didn't work since it saves a different username in the textfile than the one used during sign up. http://img832.imageshack.us/img832/4200/test2b.jpg Quote Link to post Share on other sites
nuc63 27 Posted February 20, 2011 Report Share Posted February 20, 2011 Heres What I think you are looking for. load your save file for account outputloopsignupif signup successfulthen save to save fileelse record signup as error and log if needed begin loop again. you can spin for each new signup site even. look at sample sample coding will not work 100% snippets from my own code.patrick1.ubot Quote Link to post Share on other sites
CanaDutch 0 Posted February 20, 2011 Author Report Share Posted February 20, 2011 Thanks for sharing your coding nuc63. I've been able to achieve what I wanted. Since I'm a ubot newbie I've kept it simple. The big change I made was turning whatever username ubot takes from C:\Users\username.txt into a variable and have ubot save it to an csv file specified in the save file box. I also tried adding an open file box so that I can select any file as the text file with the spun usernames instead of ubot being limited to only being able to take it from C:\Users\username.txt. But adding that proved too difficult. http://img828.imageshack.us/img828/4801/currentsetup.jpg Quote Link to post Share on other sites
nuc63 27 Posted February 20, 2011 Report Share Posted February 20, 2011 post your ubot and I may be able to help edit it. Quote Link to post Share on other sites
Super Dave 26 Posted February 20, 2011 Report Share Posted February 20, 2011 I suggest instead of saving names directly to a file.. first add it to an %output list then save the list to file on each loop. From what I remember, "Save to file" does not append, it overwrites so each time to try to save your new var you're overwriting the last ones saved.. Keep in mind too that if you do it this way your memory requirements go up with the longer you run it/the size of your %output list. Quote Link to post Share on other sites
CanaDutch 0 Posted February 21, 2011 Author Report Share Posted February 21, 2011 @Super Dave: Adding names to a %output list is indeed the way to go when I want the script to loop. For the bot that I have in mind no looping will be required though. @Nuc63: When I select the browse button and select my ubot file and then select 'attach this file' nothing happens. For that reason I uploaded my bot here: http://www.sendspace.com/file/3x5uqs Quote Link to post Share on other sites
Praney Behl 314 Posted February 21, 2011 Report Share Posted February 21, 2011 First I would like to know how did you take the scrrenshot of the whole script, is it the whole script? Praney For some hours now I've been trying to fix a certain problem I'm having. For the bot I'm creating I want to be able to use spun usernames from a text/csv file during an account sign up, and have ubot save which username was used during a particular run in a new text/.csv file. Since it seems I'm unable to attach my ubot file I added a screenshot instead of what I'm trying to do. Thanks in advance!http://img189.imageshack.us/img189/7663/testbmj.jpg Quote Link to post Share on other sites
theninjamanz 29 Posted February 21, 2011 Report Share Posted February 21, 2011 This is pretty straightforward. You are filling the field which is fine. But what you should be doing is setting the value of a variable to that output. Then you have it in a fixed state to save wherever you want. SET USERNAME---- $spin------$read file Fill FIELD USERNAME Then do what you want with it. Add to list USERNAME or Table if you want. I tend to do this with all this kind of field based data, and just save the variables to list. If you are inside a loop, remember to set remove duplicates to YES. CYA.Ninjaman. Quote Link to post Share on other sites
CanaDutch 0 Posted February 22, 2011 Author Report Share Posted February 22, 2011 @PraneyBehl: I made the screenshot by simply using paint. I changed the script shown in the screenshot. Unlike in the screenshot I've now set a variable for the spinning from a text file. Since seemingly I can't attach my ubot scripts to my posts I uploaded my current script here: http://www.sendspace.com/file/3x5uqs . @theninjamanz: yes you are right that I had to set up a variable. I later realized that as shown in my second post. 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.