papillon121 6 Posted June 8, 2017 Report Share Posted June 8, 2017 Hello Members! i have a short question: i got a csv file with username, Passwort and birth data. one per line. How can i tell ubot to use 1 line, copy and paste it in a browser window (Exbrowser)? After that, ubot has to delete this line. Has anyone an idea how to realize that? Would be great1 Hoep someone could help me! Greetings1 Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted June 8, 2017 Report Share Posted June 8, 2017 Hi, I have a short answer. You can use an index variable "set" at 0 before the loop and "increment" it at the end of the loop. Then use $table cell and in the 'row" put your "index" variable. Use 0,1,2 for the "columns" you can use 3 $table cell functions where you need them. Regards,Nick Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted June 9, 2017 Report Share Posted June 9, 2017 clear table(&data) comment("some use the \"ui open file\" if you choose to use it just place the #variable in the first feild") create table from file("{$special folder("Application")}\\your-data-file.csv",&data) set(#table index,0,"Global") loop($table total rows(&data)) { comment("column one starts at 0,1,2 and so on. computers start at 0") set(#username,$table cell(&data,#table index,0),"Global") set(#password,$table cell(&data,#table index,1),"Global") set(#dob,$table cell(&data,#table index,2),"Global") comment("use the data -- you code goes here") increment(#table index) } if you plan to use threading I would use a list instead. They are thread safe. Regards,Nickexample looping through a table.ubot Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted June 9, 2017 Report Share Posted June 9, 2017 Using a list clear list(%data) add list to list(%data,$list from file(#UI_open file),"Delete","Global") loop($list total(%data)) { comment("$next list iem increments for you. ") set(#data NLI,$next list item(%data),"Global") comment("split the data uip starts at 0 too.") set(#USER NAME,$list item($list from text(#data NLI,","),0),"Global") set(#PASSWORD,$list item($list from text(#data NLI,","),1),"Global") set(#DOB,$list item($list from text(#data NLI,","),2),"Global") comment("your code here") } ui open file("Choose file:",#UI_open file) ui stat monitor("username: {#USER NAME}","<br>password: {#PASSWORD} <br>d.o.b: {#DOB}") The downloadable file will have this too. Regards,Nick Quote Link to post Share on other sites
papillon121 6 Posted June 9, 2017 Author Report Share Posted June 9, 2017 wow, thank you very much!!!!! no, i dont Need threading. thank you again for the file, it helped me out! 1 Quote Link to post Share on other sites
papillon121 6 Posted June 11, 2017 Author Report Share Posted June 11, 2017 (edited) Using a list clear list(%data) add list to list(%data,$list from file(#UI_open file),"Delete","Global") loop($list total(%data)) { comment("$next list iem increments for you. ") set(#data NLI,$next list item(%data),"Global") comment("split the data uip starts at 0 too.") set(#USER NAME,$list item($list from text(#data NLI,","),0),"Global") set(#PASSWORD,$list item($list from text(#data NLI,","),1),"Global") set(#DOB,$list item($list from text(#data NLI,","),2),"Global") comment("your code here") } ui open file("Choose file:",#UI_open file) ui stat monitor("username: {#USER NAME}","<br>password: {#PASSWORD} <br>d.o.b: {#DOB}") The downloadable file will have this too. Regards,Nick thank you so much for your help nick. all worked well, i got the right username, passwort etc but i got this error message and the cells arent deleted after the script:do you know how i can fix that? best regards! Edited June 11, 2017 by papillon121 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.