Jump to content
UBot Underground

New v4 Tutorial (Multi Threading Example)


Recommended Posts

Her eis example code you can use for multi threading that is very simple to setup and use with "most" applications.
 

ui drop down("Thread Count", "2,3,4,5,6,7,8,9,10", #num threads)
ui text box("Number of accounts", #number accounts)
set(#num created, 0, "Global")
set(#used threads, 0, "Global")
loop(#number accounts) {
loop while($comparison(#used threads, ">=", #num threads)) {
wait(1)
}
loop process()
}
define loop process {
increment(#used threads)
increment(#num created)
registration procedure()
}
define registration procedure {
thread {
in new browser {
registration code here()
decrement(#used threads)
}
}
}
define registration code here {
if($comparison(#num created, "<=", #number accounts)) {
then {
comment("PLACE YOUR CODE TO ME MULTI THREADED HERE")
}
else {
}
}
}


More advanced multi threading
Video: http://screencast.com/t/yq7RuppSDMu

Example code attached


This uses a login script from the bot bank, and hope you like it..

 

Multi threading using lists here

Multi thread multiple websites here

  • Like 23
Link to post
Share on other sites
  • Replies 70
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Her eis example code you can use for multi threading that is very simple to setup and use with "most" applications.   ui drop down("Thread Count", "2,3,4,5,6,7,8,9,10", #num threads) ui text box("Num

Here's a Multi Threading Example that TJ helped me with that processes a list with 3 elements per row. I originally tried to use TJ's Advanced example using Tables but found that the multi threading w

Using the above example how would I loop thru multiple list? I have a list of post I would like to run thru that are specific for each login. So user A logs in and post from user A list (schedule), th

Firstly, great stuff here, this is not the type of code and help people give out for free…

 

Thanks a million!

 

One question though...

 

I noticed in your program that you created a command call “Start Up†but I never saw it called in code view. Is there some type of initialization feature in DEV that is not available in PRO?

 

Studying the code, I think I'm missing something....

Link to post
Share on other sites

Hey TJ, thanks for the video and the code - I am guessing I can change some of the code I showed you earlier in the week on my bots to use tables to stop the local / global variable problem I was having (the cpanel backup bot).

 

Either way, thanks again - learnt a lot in that 5 minute vid!!

Link to post
Share on other sites

Okay - this could be a really stupid question but here goes :)

 

At the beginning you set 'account position' to zero - I guess that this is the first row of the table?

If thats right, how do you get to the next row, should there not be an increment 'account position' in there somewhere to tell ubot to go to the next row?

 

As I have said before - I have never used tables before so if it is a stupid question then I apologise in advance!

Link to post
Share on other sites

updated main post. included the increment for the account data.

 

This wasn't really suppose to be a full blown bot, its more to show you the functionality how to setup multi threading.

 

Also account data for this specific bot should start on line 1 not line 0

 

so your csv data file would have a headings line, or a blank line at the top, then start the account data on the next line.

Link to post
Share on other sites

Yeah, sorry that I asked about something outside the scope of your video and post. Its your own fault really, you just taught me all about tables AND multithreading so thought I would squeeze your brain for the last bit as well :D

 

Cheers for the answer though - I think its all just finally sunk in so thanks again TJ!

Link to post
Share on other sites
  • 2 weeks later...
  • 1 month later...

Her eis example code you can use for multi threading that is very simple to setup and use with "most" applications.

 

This uses a login script from the bot bank, and hope you like it..

 

 

This great.. thank you so much. Was really looking for something like that..

Link to post
Share on other sites
  • 1 month later...
  • 2 months later...

Awesome Video! It was a great help. I created a bot that uses your multi-threading method, but for some reason it is opening the same thing in all the new windows.

 

TJ would it be ok if I PMed you with the code, and you tell me what I did wrong?

 

Thanks so much for the video.

Link to post
Share on other sites
  • 3 weeks later...

i want to create multi threads wordpress poster

example i am using 5 threads

with that logical so i must login in every posts or just login 5 times in wordpress ?

I'm still confused with your logics

Link to post
Share on other sites
  • 2 months later...
you would have to login on each thread, since it stores the cookies separately per thread.

 

or you can simply launch 5 browsers to process your routines once logged in with in new browser

how to make onlytheard? Number of accounts delete?

 

Thank you

Link to post
Share on other sites
can you explain a bit more

ı have 14 sites account register bot. Only 1 account created. 

 

sample = 5 theards (5 browsers open and working)

sample = 3 theards (3 browsers open and working)

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