Jump to content
UBot Underground

[Help] Thread Spawn & Next List Item


Recommended Posts

Hello, 

 

I have a problem using the Ubot studio 5.x Thread spawn feature. 

 

 

I have a txt file with different accounts eg:

 

account1@account.com:hiiiiiiiiiiii

account2@account.com:123456

 

So the problem i'm having is that i want the program to use  different accounts in a new browser. unfortunately ubot is using the same account each time :(

 

Here is my code:

 

I want to use the next account on ubot studio. Each account have to be different in new browser. 

 

for example:

 

Browser 1: account1@account.com:hiiiiiiiiiiii

Browser 2: account2@account.com:123456

ui open file("Accounts",#accounts)
clear list(%logininfo)
add list to list(%logininfo,$list from file(#accounts),"Delete","Global")
set list position(%logininfo,0)
thread spawn($list total(%logininfo),2) {
    set(#global_account,$next list item(%logininfo),"Global")
    in new browser {
        navigate("https://ubotstudio.com/site/playground-simple-form/","Wait")
        wait for browser event("Everything Loaded","")
        type text(<username field>,$find regular expression(#global_account,".+(?=\\:)"),"Standard")
        type text(<password field>,$find regular expression(#global_account,"(?<=\\.+"),"Standard")
        wait(1000)
    }
}

Thanks!

Link to post
Share on other sites
ui open file("Accounts",#accounts)
clear list(%logininfo)
add list to list(%logininfo,$list from file(#accounts),"Delete","Global")
set list position(%logininfo,0)
thread spawn($list total(%logininfo),2) {
    in new browser {
        navigate("https://ubotstudio.com/site/playground-simple-form/","Wait")
        wait for browser event("Everything Loaded","")
        set(#global_account,$next list item(%logininfo),"Local")
        type text(<username field>,$find regular expression(#global_account,".+(?=\\:)"),"Standard")
        type text(<password field>,$find regular expression(#global_account,"(?<=\\.+"),"Standard")
        wait(30)
    }
    wait(0.1)
}

move & set to Local

set(#global_account,$next list item(%logininfo),"Local")

 

 

add

wait(0.1)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...