LoWrIdErTJ - BotGuru 904 Posted April 21, 2012 Report Share Posted April 21, 2012 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/yq7RuppSDMuExample code attachedThis uses a login script from the bot bank, and hope you like it.. Multi threading using lists hereMulti thread multiple websites here 23 Quote Link to post Share on other sites
JohnB 255 Posted April 22, 2012 Report Share Posted April 22, 2012 Thank you TJ, awesome stuff! John Quote Link to post Share on other sites
kin 0 Posted April 22, 2012 Report Share Posted April 22, 2012 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.... Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted April 22, 2012 Author Report Share Posted April 22, 2012 Sorry about that, i did forget to place the startup command in there, I have updated the code sample, and included this now.. Quote Link to post Share on other sites
Legend 181 Posted April 22, 2012 Report Share Posted April 22, 2012 Thanks TJ! http://ubotstudio.com/forum/public/style_emoticons/default/smile.gif Quote Link to post Share on other sites
malefic 48 Posted April 22, 2012 Report Share Posted April 22, 2012 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!! Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted April 22, 2012 Author Report Share Posted April 22, 2012 you the table is held local to the defined command. if you set variables in the defined commands that is using multi threading make sure to use local, stead of global so that they aren't being written globally Quote Link to post Share on other sites
malefic 48 Posted April 22, 2012 Report Share Posted April 22, 2012 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! Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted April 22, 2012 Author Report Share Posted April 22, 2012 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. Quote Link to post Share on other sites
malefic 48 Posted April 22, 2012 Report Share Posted April 22, 2012 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 Cheers for the answer though - I think its all just finally sunk in so thanks again TJ! Quote Link to post Share on other sites
rocket976 62 Posted April 22, 2012 Report Share Posted April 22, 2012 Your a valuable asset to any team TJ, thanks for the insight. Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted April 22, 2012 Author Report Share Posted April 22, 2012 all welcome. and np malefic. anything to help. Quote Link to post Share on other sites
keiooz 1 Posted April 23, 2012 Report Share Posted April 23, 2012 Cool. Thanks. You're the best TJ.http://imagicon.info/cat/5-34/vbulletin-eek.gif Quote Link to post Share on other sites
wakins4u 12 Posted April 23, 2012 Report Share Posted April 23, 2012 TJ, once again, your the man! Thanks buddy. Quote Link to post Share on other sites
UBotGoRound 0 Posted May 6, 2012 Report Share Posted May 6, 2012 Your video was a big help to me too, while trying to get to grips with tables and the usefulness of multi-threading is beginning to sink in. Thank you. Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted May 7, 2012 Author Report Share Posted May 7, 2012 glad you liked it.. Quote Link to post Share on other sites
Security 17 Posted June 11, 2012 Report Share Posted June 11, 2012 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.. Quote Link to post Share on other sites
zahinero 0 Posted July 13, 2012 Report Share Posted July 13, 2012 Great post, it has been a great help. It is Still not clear, but much better now and getting good resultsThanks Quote Link to post Share on other sites
Josh 37 Posted September 27, 2012 Report Share Posted September 27, 2012 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. Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted September 27, 2012 Author Report Share Posted September 27, 2012 that woulod be fine.. or email the .ubot to admin@botguru.net and ill ahve a look for you Quote Link to post Share on other sites
gfpoow 0 Posted October 13, 2012 Report Share Posted October 13, 2012 i want to create multi threads wordpress posterexample i am using 5 threadswith that logical so i must login in every posts or just login 5 times in wordpress ?I'm still confused with your logics Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted October 13, 2012 Author Report Share Posted October 13, 2012 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 Quote Link to post Share on other sites
SaHiN 14 Posted December 24, 2012 Report Share Posted December 24, 2012 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 browserhow to make onlytheard? Number of accounts delete? Thank you Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted December 24, 2012 Author Report Share Posted December 24, 2012 can you explain a bit more Quote Link to post Share on other sites
SaHiN 14 Posted December 24, 2012 Report Share Posted December 24, 2012 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) 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.