TheBotnetGuy 0 Posted March 30, 2013 Report Share Posted March 30, 2013 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() } Quote Link to post Share on other sites
utsavat 1 Posted March 30, 2013 Report Share Posted March 30, 2013 (edited) One Mistake i see is that you are not setting Proxy list position back to 0 What other Problems you are getting Edited March 30, 2013 by utsavat 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.