Freako 0 Posted September 1, 2011 Report Share Posted September 1, 2011 Hello, I have a problem by the creation of a yahoo account creator with multi threading. By the attached bot, ubot works with 8 browser windows but use the same account details in all windows. Also it doesnt click on the "create account" button. Any ideas?yahoo u4.ubot Quote Link to post Share on other sites
Praney Behl 314 Posted September 1, 2011 Report Share Posted September 1, 2011 you need to use the rest account command within the loop to reset account data. Hope it helps, Praney Quote Link to post Share on other sites
Praney Behl 314 Posted September 1, 2011 Report Share Posted September 1, 2011 Here is the code: clear list(%accounts) loop(8) { reset account("Any") thread { in new browser { clear cookies reset account("Any") navigate("http://de.yahoo.com/?p=us", "Wait") click(<innertext="Registrieren">, "Left Click", "No") wait for browser event("Everything Loaded", "") wait for element(<id="disclaimer">, "", "Appear") type text(<first name field>, $account data("First Name"), "Standard") type text(<name="secondname">, $account data("Last Name"), "Standard") change dropdown(<sex dropdown>, 1) type text(<name="dd">, $account data("Birth Day"), "Standard") change dropdown(<name="mm">, "Random") type text(<name="yyyy">, $account data("Birth Year"), "Standard") type text(<name="postalcode">, $account data("Zip Code"), "Standard") type text(<name="yahooid">, $account data("Username"), "Standard") type text($element offset(<password field>, 0), $account data("Password"), "Standard") type text($element offset(<password field>, 1), $account data("Password"), "Standard") change dropdown(<name="secquestion">, 1) type text(<name="secquestionanswer">, "Bernhart", "Standard") change dropdown(<name="secquestion2">, 1) type text(<name="secquestionanswer2">, "Schmitz", "Standard") type text(<name="captchaAnswer">, $solve captcha($element offset(<id="captchaV5ClassicCaptchaImg">, 0)), "Standard") click(<name="IAgreeBtn">, "Left Click", "No") wait(10) add item to list(%accounts, "{$page scrape("</span><span class=\"value\">", ".de")}.de;{$account data("Username")}", "Delete", "Global") } } } wait(45) save to file("{$special folder("Desktop")}\\accounts.txt", %accounts) Praney Quote Link to post Share on other sites
Freako 0 Posted September 1, 2011 Author Report Share Posted September 1, 2011 Thanks for your help, but the mistake is still the same. In every browser the same username is in the email field. Quote Link to post Share on other sites
Praney Behl 314 Posted September 1, 2011 Report Share Posted September 1, 2011 Sorry my bad maybe I put the command in the wrong place.Try this: clear list(%accounts) loop(8) { thread { in new browser { reset account("Any") clear cookies reset account("Any") navigate("http://de.yahoo.com/?p=us", "Wait") click(<innertext="Registrieren">, "Left Click", "No") wait for browser event("Everything Loaded", "") wait for element(<id="disclaimer">, "", "Appear") type text(<first name field>, $account data("First Name"), "Standard") type text(<name="secondname">, $account data("Last Name"), "Standard") change dropdown(<sex dropdown>, 1) type text(<name="dd">, $account data("Birth Day"), "Standard") change dropdown(<name="mm">, "Random") type text(<name="yyyy">, $account data("Birth Year"), "Standard") type text(<name="postalcode">, $account data("Zip Code"), "Standard") type text(<name="yahooid">, $account data("Username"), "Standard") type text($element offset(<password field>, 0), $account data("Password"), "Standard") type text($element offset(<password field>, 1), $account data("Password"), "Standard") change dropdown(<name="secquestion">, 1) type text(<name="secquestionanswer">, "Bernhart", "Standard") change dropdown(<name="secquestion2">, 1) type text(<name="secquestionanswer2">, "Schmitz", "Standard") type text(<name="captchaAnswer">, $solve captcha($element offset(<id="captchaV5ClassicCaptchaImg">, 0)), "Standard") click(<name="IAgreeBtn">, "Left Click", "No") wait(10) add item to list(%accounts, "{$page scrape("</span><span class=\"value\">", ".de")}.de;{$account data("Username")}", "Delete", "Global") } } } wait(45) save to file("{$special folder("Desktop")}\\accounts.txt", %accounts) Quote Link to post Share on other sites
Freako 0 Posted September 1, 2011 Author Report Share Posted September 1, 2011 I have also try out this code. It's the same error. You can check it if you click though the browser windows in the sidebar. From the logical your codes and my code should work. So I think its a bug in ubot. Quote Link to post Share on other sites
Eddie Waller 158 Posted September 1, 2011 Report Share Posted September 1, 2011 I have also try out this code. It's the same error. You can check it if you click though the browser windows in the sidebar. From the logical your codes and my code should work. So I think its a bug in ubot. This could be considered a bug, $account data is shared across your entire script at the moment. Would you like it to be separate per browser? Would you like it to be separate per custom command? Let me know how you expect it to work . Quote Link to post Share on other sites
Freako 0 Posted September 1, 2011 Author Report Share Posted September 1, 2011 Instead of a single thread account creator for yahoo I want to create a multithreaded bot. So in each thread/seperate browser it must be possible to use new account details which are only local in the thread/browser. Quote Link to post Share on other sites
Enigma 78 Posted September 1, 2011 Report Share Posted September 1, 2011 In uBot 3.5 there is an option "create account" (male/female)in the Action commands which solves this issue by including this in each loop/thread. Quote Link to post Share on other sites
Praney Behl 314 Posted September 3, 2011 Report Share Posted September 3, 2011 I think, adding "scope"="Global/Local" to the "reset account" command can solve the issue. But I am not sure how hard would it be. 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.