Jump to content



Photo

Problem With Account Data /number Loop To Numer Row

account data row loop csv txt

  • Please log in to reply
1 reply to this topic

#1 hellartpl@gmail.com

hellartpl@gmail.com

    Newbie

  • Members
  • Pip
  • 5 posts
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v3.5
  • License:Standard Edition

Posted 08 March 2018 - 09:30 AM

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 effect

loop 0 = data in txt or csv
name1 (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 wrong

txt file (test1.txt)
name1, password1
name2, password2
NAME3, password3
NAME4, password4
NAME5, password5
name6, 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)
    }
}



#2 HelloInsomnia

HelloInsomnia

    Advanced Member

  • Moderators
  • 2973 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 08 March 2018 - 05:27 PM

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)
    }
}






Also tagged with one or more of these keywords: account data, row, loop, csv, txt

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users