Jump to content
UBot Underground

Want To Create Simple Multi Threaded Plz Help


Recommended Posts

I tried lot and but no use,,I could not make the bot multi threaded can anyone please help me..

 

below is my code..this is simple data picked from csv file..I tried code given http://network.ubotstudio.com/forum/index.php/topic/10042-new-v4-tutorial-multi-threading-example/

 

but all thread windows used same user details and login to yahoo from same row..

 

ui open file("Accounts",#GmailAccount)
create table from file(#GmailAccount,&Gmailaccount)
ui text box("Starting Point",#StartingPoint)
set(#row,#StartingPoint,"Global")
add list to list(%Use this proxy,$list from file(#proxy),"Delete","Global")
ui open file("Proxy Details Format Proxy:Port",#proxy)
ui stat monitor("Working on Row No.",#row)
loop($table total rows(&Gmailaccount)) {
    navigate("https://mail.yahoo.com/","Wait")
    wait for browser event("Everything Loaded","")
    type text(<username field>,$table cell(&Gmailaccount,#row,0),"Standard")
    click(<login button>,"Left Click","No")
    wait for browser event("Everything Loaded","")
    wait for element(<password field>,"","Appear")
    type text(<password field>,$table cell(&Gmailaccount,#row,1),"Standard")
    wait for browser event("Everything Loaded","")
    click($element offset(<login button>,0),"Left Click","No")
    alert("Work done..")
    increment(#row)
}

 

 

please help me..Thanks

Link to post
Share on other sites

I never get it to work, if will be grateful if anyone can use my code and transform it into working multithreaded..

I am able to make open seperate browser, but could not open different account details, in each browser same details is are filled..please help..

Link to post
Share on other sites

You will have to test this, it should be a good start for you:

ui open file("Accounts",#GmailAccount)
create table from file(#GmailAccount,&Gmailaccount)
ui text box("Starting Point",#StartingPoint)
set(#row,#StartingPoint,"Global")
add list to list(%Use this proxy,$list from file(#proxy),"Delete","Global")
ui open file("Proxy Details Format Proxy:Port",#proxy)
ui stat monitor("Working on Row No.",#row)
set(#threadCount,3,"Global")
set(#usedThreads,0,"Global")
loop($table total rows(&Gmailaccount)) {
    loop while($comparison(#usedThreads,">= Greater than or equal to",#threadCount)) {
        wait(1)
    }
    increment(#usedThreads)
    Login($table cell(&Gmailaccount,#row,0), $table cell(&Gmailaccount,#row,1))
    increment(#row)
    wait(0.1)
}
define Login(#username, #password) {
    thread {
        in new browser {
            navigate("https://mail.yahoo.com/","Wait")
            wait for browser event("Everything Loaded","")
            type text(<username field>,#username,"Standard")
            click(<login button>,"Left Click","No")
            wait for browser event("Everything Loaded","")
            wait for element(<password field>,"","Appear")
            type text(<password field>,#password,"Standard")
            wait for browser event("Everything Loaded","")
            click($element offset(<login button>,0),"Left Click","No")
        }
        decrement(#usedThreads)
    }
}
  • Like 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...