pbsolution 4 Posted January 22, 2015 Report Share Posted January 22, 2015 Hello,im new to UBot and need Help:I have an CSV with Logins and Passwords, seperated by comma.I want to load the First row and split them in Account and Password.Then he should go to row 1, but he doesnt make that. Here is my Code: loop(5) { create table from file("C:\\Users\\Peter\\Desktop\\Accounts.csv",&Accounts) set table cell(&Accounts,#row,0,"") set(#Login,$table cell(&Accounts,0,0),"Global") set(#Password,$table cell(&Accounts,0,1),"Global") increment(#row) alert("{#Login}{#Password}") } Thanks for your Help Quote Link to post Share on other sites
UBotDev 276 Posted January 22, 2015 Report Share Posted January 22, 2015 You have quite a lot of "bugs" in your code. 1st: You are not initializing UBot variable #row, so it would most likely have a blank value.2nd: You only need to load table once, therefore you shouldn't have it in a loop.3rd: To pull login details you need to tell from which row, but you are always using row 0 (you have number zero hard-coded)4th: You are always setting table column 0 to value "", meaning that #login variable would have the same value, "". So here is the fixed code: clear table(&Accounts) create table from file("C:\\Users\\Peter\\Desktop\\Accounts.csv", &Accounts) set(#row, 0, "Global") loop(5) { set(#Login, $table cell(&Accounts, #row, 0), "Global") set(#Password, $table cell(&Accounts, #row, 1), "Global") alert("{#Login}{#Password}") increment(#row) } Quote Link to post Share on other sites
itexspert 47 Posted January 22, 2015 Report Share Posted January 22, 2015 You should see couple of videos before you start coding they are very good for practice you have them in your Account Dashboard,its very useful for beginners such as yourself. Best Regards! Quote Link to post Share on other sites
Edward_2 85 Posted January 23, 2015 Report Share Posted January 23, 2015 Hi welcome. Some really great people here, lots of help with questions and such. Glad you could join us. Quote Link to post Share on other sites
pbsolution 4 Posted January 23, 2015 Author Report Share Posted January 23, 2015 Hello, and THX!I came from Zenno, and there all is easier then in UBot. Ive watched a mass of Videos, but ist hard to find the right one.Thanks for the Help to all!Greetings 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.