JackCrow 4 Posted April 9, 2013 Report Share Posted April 9, 2013 Hello. I've been playing around with this most of the day and could use some help. The accounts all have different passwords so adding the names to a list then shuffling isn't going to work. I would just like to log-in from a random account from the table. I know there is an easy way to do this. Can anyone share? The account information looks like this. sadyesantarsier,xobjpksbup054luettahausen910,wwovxvzuja801 Quote Link to post Share on other sites
utsavat 1 Posted April 9, 2013 Report Share Posted April 9, 2013 Load this into a table use #table Row Counter random the value of table row counter that varies from 0 to $table total rows and that is done. Quote Link to post Share on other sites
LazyBotter 188 Posted April 9, 2013 Report Share Posted April 9, 2013 Take a look at this code: Open your debugger and you will see the account details match. comment("Create Account List") set(#AccountDetails, "User1,Pass1 User2,Pass2 User3,Pass3 User4,Pass4 User5,Pass5 User6,Pass6 User7,Pass7 User8,Pass8 User9,Pass9 User10,Pass10", "Global") clear list(%Accounts) add list to list(%Accounts, $list from text(#AccountDetails, $new line), "Delete", "Global") comment("Get Random Account") loop(3) { set(#RandAccountPos, $rand(0, $list total(%Accounts)), "Global") clear list(%RandAccount) add list to list(%RandAccount, $list from text($list item(%Accounts, #RandAccountPos), ","), "Delete", "Global") set(#Username, $list item(%RandAccount, 0), "Global") set(#Password, $list item(%RandAccount, 1), "Global") wait(1) } Carl Quote Link to post Share on other sites
JackCrow 4 Posted April 9, 2013 Author Report Share Posted April 9, 2013 Hey Carl. That worked for me. Thank you so much for all the help you've given. :-) And thank you Utsavat for the input. 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.