hellartpl@gmail.com 0 Posted March 8, 2018 Report Share Posted March 8, 2018 Hello . I would like to replace $ account data with my data in a csv or txt file. I have a problem with obtaining such an effectloop 0 = data in txt or csvname1 (row 0, col 0)pass1 (row 0, col 1)loop 1.name2 (row 1, col 0)pass2 (row 1, col 1)and so on (number of loops)unfortunately, every way I tried it turned out to be wrongtxt file (test1.txt)name1, password1name2, password2NAME3, password3NAME4, password4NAME5, password5name6, password6 please help. THX ui drop down("Threads",1,#threadCount) ui text box("Number of Accounts",#loops) clear list(%accounts) clear list(%accountinformation) create table from file("D:\\test1.txt",&my table) set(#usedThreads,0,"Global") loop(#loops) { reset account("Any") set(#username,$account data("Username"),"Global") set(#password,$account data("Password"),"Global") add item to list(%accountinformation,"{#username}:{#password}","Don\'t Delete","Global") } add list to list(%my proxies,$list from file("D:\\prox.txt"),"Don\'t Delete","Global") save to file("{$special folder("Application")}\\account.csv",%accountinformation) loop(#loops) { loop while($comparison(#usedThreads,">= Greater than or equal to",#threadCount)) { wait(1) } clear list(%account) add list to list(%account,$list from text($next list item(%accountinformation),":"),"Delete","Global") increment(#usedThreads) CreateAccount($list item(%account,0), $list item(%account,1)) wait(0.1) } loop while($comparison(#usedThreads,"> Greater than",0)) { wait(0.1) } alert("Finished") define CreateAccount(#_username, #_password) { thread { change proxy($next list item(%my proxies)) navigate("http://www.ubotstudio.com/playground/simple-form","Wait") wait(7) wait for browser event("Everything Loaded","") type text(<username field>,#_username,"Standard") type text(<password field>,#_password,"Standard") add item to list(%accounts,"{#_username}:{#_password}","Don\'t Delete","Global") click(<value="Submit">,"Left Click","No") clear cookies decrement(#usedThreads) } } Quote Link to post Share on other sites
HelloInsomnia 1103 Posted March 9, 2018 Report Share Posted March 9, 2018 Try this: ui drop down("Threads",1,#threadCount) ui text box("Number of Accounts",#loops) clear list(%accounts) clear list(%accountinformation) create table from file("D:\\test1.txt",&my table) set(#usedThreads,0,"Global") set(#row,0,"Global") loop(#loops) { reset account("Any") set(#username,$table cell(&my table,#row,0),"Global") set(#password,$table cell(&my table,#row,1),"Global") add item to list(%accountinformation,"{#username}:{#password}","Don\'t Delete","Global") increment(#row) } add list to list(%my proxies,$list from file("D:\\prox.txt"),"Don\'t Delete","Global") save to file("{$special folder("Application")}\\account.csv",%accountinformation) loop(#loops) { loop while($comparison(#usedThreads,">= Greater than or equal to",#threadCount)) { wait(1) } clear list(%account) add list to list(%account,$list from text($next list item(%accountinformation),":"),"Delete","Global") increment(#usedThreads) CreateAccount($list item(%account,0), $list item(%account,1)) wait(0.1) } loop while($comparison(#usedThreads,"> Greater than",0)) { wait(0.1) } alert("Finished") define CreateAccount(#_username, #_password) { thread { change proxy($next list item(%my proxies)) navigate("http://www.ubotstudio.com/playground/simple-form","Wait") wait(7) wait for browser event("Everything Loaded","") type text(<username field>,#_username,"Standard") type text(<password field>,#_password,"Standard") add item to list(%accounts,"{#_username}:{#_password}","Don\'t Delete","Global") click(<value="Submit">,"Left Click","No") clear cookies decrement(#usedThreads) } } 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.