ViLLE BABY 1 Posted May 2, 2012 Report Share Posted May 2, 2012 Using UBot Pro v4 I'm trying to create an account on a site and I want to use the same password for the account that was already created for the Email and stored in a txt file in Email:Password format. How can I pull the email and password separately from the same txt file to fill out both the Email and Password fields on an Account Registration? I'd really prefer not to use a csv file if possible. Thanks for any help in advance. Quote Link to post Share on other sites
rapt0r 3 Posted May 2, 2012 Report Share Posted May 2, 2012 you can use something like this to split the email:pw Example: Copy and paste this in the code view navigate("http://ubotstudio.com/playground/simpleform.aspx", "Wait") clear list(%Accounts) clear list(%AccountsSplit) set(#Account, $nothing, "Global") set(#Account, "MyEmail@Email.com:EmailPassword", "Global") set(#AccountReplace, $nothing, "Global") add item to list(%Accounts, #Account, "Don\'t Delete", "Global") add list to list(%AccountsSplit, $list from text(%Accounts, ":"), "Don\'t Delete", "Global") type text(<username field>, $list item(%AccountsSplit, 0), "Standard") type text(<password field>, $list item(%AccountsSplit, 1), "Standard") 1 Quote Link to post Share on other sites
ViLLE BABY 1 Posted May 3, 2012 Author Report Share Posted May 3, 2012 This probably sounds like a really dumb question, but what do I put in place of "MyEmail@Email.com:EmailPassword" in order to get it to pull the Emails and Passwords from my txt file in order? Quote Link to post Share on other sites
rapt0r 3 Posted May 3, 2012 Report Share Posted May 3, 2012 try this: Make a Accounts.txt on your desktop also change the "C:\\Users\\Admin\\Desktop\\Accounts.txt" to your own directory that has the accounts.txt. You will need to replace that in two places when loading the list and saving the list. This will grab an item from accounts.txt and remove it from the list and save it and then fill the form. Let me know if you wanted it differently but this is how i do it, i remove the item so i dont grab it again later. navigate("http://ubotstudio.com/playground/simpleform.aspx", "Wait") clear list(%Accounts) clear list(%AccountsSplit) set(#Account, $nothing, "Global") clear list(%AccountsList) add list to list(%AccountsList, $list from file("C:\\Users\\Admin\\Desktop\\Accounts.txt"), "Delete", "Global") set(#Account, $list item(%AccountsList, 0), "Global") remove from list(%AccountsList, 0) save to file("C:\\Users\\Admin\\Desktop\\Accounts.txt", %AccountsList) set(#AccountReplace, $nothing, "Global") add item to list(%Accounts, #Account, "Don\'t Delete", "Global") add list to list(%AccountsSplit, $list from text(%Accounts, ":"), "Don\'t Delete", "Global") type text(<username field>, $list item(%AccountsSplit, 0), "Standard") type text(<password field>, $list item(%AccountsSplit, 1), "Standard") hope this helps.Accounts.txtSplit Data Example.ubot 3 Quote Link to post Share on other sites
underwear 0 Posted May 16, 2012 Report Share Posted May 16, 2012 Thank you very much! Quote Link to post Share on other sites
prosperer888 1 Posted June 29, 2012 Report Share Posted June 29, 2012 i can't download it...can you share it once again op 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.