Jump to content
UBot Underground

Recommended Posts

please have a lokk at the code that i am trying to implement,

 

I want to have different proxies in different browsers please advice where i am missing something or where my code is wrong

define Ini threading {
    if($comparison($list total(%Proxy List), "<", #JobsCount)) {
        then {
            alert("The Proxies are loaded Less then Jobs to do")
            stop script
        }
        else {
        }
    }
    increment(#numCount)
    increment(#Tcount)
    Rutine to thread()
    increment(#Proxy List Counter)
}
define Rutine to thread {
    thread {
        in new browser {
            change proxy($list item(%Proxy List, #Proxy List Counter))
            navigate("http://geoip.hidemyass.com/", "Wait")
            wait($rand(10, 20))
            decrement(#numCount)
        }
    }
}
set(#Tcount, 0, "Global")
set(#numCount, 0, "Global")
ui drop down("Max. Threads to Open", "2,3,4,5,6,7,8,9,10,11,12,13,14,15", #maxThreads)
ui drop down("Total Jobs to DO", "5,10,15,20,30", #JobsCount)
ui stat monitor("Total Jobs Done", #Tcount)
ui stat monitor("No of threads Open", #numCount)
ui open file("Proxy List", #proxy list file)
add list to list(%Proxy List, $list from file(#proxy list file), "Delete", "Global")
set(#Proxy List Counter, 0, "Global")
loop(#JobsCount) {
    loop while($comparison(#numCount, ">=", #maxThreads)) {
        wait(1)
    }
    Ini threading()
}

 

 

Link to post
Share on other sites

One Mistake i see is that you are not setting Proxy list position back to 0

 

What other Problems you are getting

Edited by utsavat
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...