-Illuminati- 1 Posted June 29, 2015 Report Share Posted June 29, 2015 So when I followed one of Seth's videos on youtube for setting up threads, and well, when the bot runs the thread, it runs the commands, closes the thread, and starts a new one. How can I get it to keep the thread open and running? I tried wait for browser elements to load, and wait for 99999999 seconds, but that only allows 1 thread to run. Here is my code: loop(#threadcount) { in new browser { clear cookies set visibility("Visible") allow css("No") allow images("No") change proxy($list item(%proxylist, #proxyposition)) set user agent($list item(%useragentlist, #useragentposition)) increment(#proxyposition) increment(#threadsactive) increment(#useragentposition) navigate(#surfurl, "Wait") wait(9999999999999999999999999) } } Quote Link to post Share on other sites
Bot-Factory 602 Posted June 29, 2015 Report Share Posted June 29, 2015 Loop while. Check for a variable.And set that variable to false when you want to close it. Dan Quote Link to post Share on other sites
-Illuminati- 1 Posted June 29, 2015 Author Report Share Posted June 29, 2015 Loop while. Check for a variable.And set that variable to false when you want to close it. DanHey Dan, I am a bit confused, replace loop with loop while? If I end up doing that, how should I combat the issue of thread count? If it makes it easier, here is the full code to the project I have started. set(#threadsactive, 0, "Global") ui text box("eBesucher Surfbar URL", #surfurl) ui drop down("Set Threads", "1,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100", #threadcount) ui open file("Open Proxy List", #proxylist) ui open file("Open User Agent List", #useragentlist) add list to list(%proxylist, $list from file(#proxylist), "Delete", "Global") add list to list(%useragentlist, $list from file(#useragentlist), "Delete", "Global") ui stat monitor("Proxies Imported:", $list total(%proxylist)) ui stat monitor("User Agents Imported:", $list total(%useragentlist)) ui stat monitor("Threads Active:", #threadsactive) loop(#threadcount) { in new browser { clear cookies set visibility("Visible") allow css("No") change proxy($list item(%proxylist, #proxyposition)) set user agent($list item(%useragentlist, #useragentposition)) increment(#proxyposition) increment(#threadsactive) increment(#useragentposition) navigate(#surfurl, "Wait") } } Quote Link to post Share on other sites
Bot-Factory 602 Posted June 30, 2015 Report Share Posted June 30, 2015 Hello. please take a look at:http://www.ubotstudio.com/forum/index.php?/topic/10042-new-v4-tutorial-multi-threading-example/http://wiki.ubotstudio.com/wiki/ThreadThat should give you some background about how that stuff works.As soon as you have the basic concepts down, we can look at issues that might come up. But at the moment, you need a basic understanding about who threading works.Dan 1 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.