Jump to content
UBot Underground

Problems With Ubot Threading


Recommended Posts

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)
    }
}

Link to post
Share on other sites

Loop while. Check for a variable.

And set that variable to false when you want to close it.

 

Dan

Hey 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")
    }
}

Link to post
Share on other sites

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/Thread

That 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

  • 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...