Jump to content
UBot Underground

Recommended Posts

I have searched for this question but haven't found anything:

 

What I want is my forum registration bot to run faster. Is it possible for the bot to register on 4 forums at once? Each forum in a separate window. Of course I have hundreds of forums I want to register on ;)

 

I am looking for a feature that senuke has when it registers on web2.0 sites. There are 4 windows and in every window it registers on another site.

 

This way I could speed up the whole process by 4x.

Link to post
Share on other sites

I actually think this is possible - but you will need to code it in -

 

The way I would do it is have checkboxes and then have the bot evaluate if it is checked then to run

 

so for example you may have 4 forum platform - vbulletin - ipboard - jforum and mybb

 

when your using the evaluation command then try and work with it so you can evaluate if both checkboxes are checked - you will need to do it in a way so that all four checkboxes have different evaluate commands - then if yes - as in both are checked then run one in a subwindow as a thread command - if not and only one is checked then it will run in the normal windown without a thread -

 

I hope this makes sense - not sure if it will as i havnt done this yet but am sure it can be done -

 

the final outcome if all 4 checkboxes are checked should return 3 subwindows running in thread commands and your main ubot window running the 4rth platform

 

hope this helps

 

thanks

  • Like 1
Link to post
Share on other sites

I think you could use the subwindows or thread command, but it may be resource intensive.

 

I believe that the Pro version of Ubot will have sockets which will support multithreading.

 

An alternative solution for the time being, is to run multiple instances of the bot.

Link to post
Share on other sites

I actually think this is possible - but you will need to code it in -

 

The way I would do it is have checkboxes and then have the bot evaluate if it is checked then to run

 

so for example you may have 4 forum platform - vbulletin - ipboard - jforum and mybb

 

when your using the evaluation command then try and work with it so you can evaluate if both checkboxes are checked - you will need to do it in a way so that all four checkboxes have different evaluate commands - then if yes - as in both are checked then run one in a subwindow as a thread command - if not and only one is checked then it will run in the normal windown without a thread -

 

I hope this makes sense - not sure if it will as i havnt done this yet but am sure it can be done -

 

the final outcome if all 4 checkboxes are checked should return 3 subwindows running in thread commands and your main ubot window running the 4rth platform

 

hope this helps

 

thanks

 

@abs, when you say, multitasking using checkboxes, have you used this method or is it an assumption. There has been some intense talk about this topic. To my knowledge it is not yet completely possible to multi task 2 or more browser operations. With your example how do you think the browser resources are shared?

 

The thread command was only introduced to overcome a problem with dialouge boxes. If you put a bit of code in the thread command and it uses browser resources then you need to specify a certain delay for the operation to complete, thus killing multi-tasking as only 1 operation continues.

 

There is some intense talks on the topic as below:

 

http://ubotstudio.com/forum/index.php?/topic/4087-multi-threading/page__view__findpost__p__15812

 

http://ubotstudio.com/forum/index.php?/topic/4007-how-do-i-multi-thread/page__hl__multi%20threading__fromsearch__1

 

http://ubotstudio.com/forum/index.php?/topic/4249-multi-thread/page__hl__multi%20threading__fromsearch__1

 

http://ubotstudio.com/forum/index.php?/topic/4650-multi-threading-on-the-road-map/page__hl__multi%20threading__fromsearch__1

 

and maybe many more..

 

 

I think you could use the subwindows or thread command, but it may be resource intensive.

 

I believe that the Pro version of Ubot will have sockets which will support multithreading.

 

An alternative solution for the time being, is to run multiple instances of the bot.

 

@IRobot, as I mentioned above it goes the same using 'Subwindows', you need to have delay to perform the operations in the Subwindow and the flow to control is only passed to one of them.

 

Yes it could be possible to multi-thread using socket which will be introduced in a new license, to my information Seth has not yet decided on which license to put it into, it was decided in one of the Seth's NEWS thread about " Next Ubot Development" thread :

 

http://ubotstudio.com/forum/index.php?/topic/4881-the-next-ubot-development/

 

To my information it is not yet decided if the Sockets command will be included in the PRO lic. Although it is a very advanced command and will not be easy to program.

 

 

Praney

Link to post
Share on other sites

For multithreading, anyone ever try splitting the bot into multiple exe files and then running them all at the same with with /auto?

 

Its is not very practicle, I tried it once with only a simple bot and only 4 instances, just account creation, as it started it was fine but then once all four instances were up it consumed a lot of system resources and slowed down my monster.

 

Praney

Link to post
Share on other sites

Its is not very practicle, I tried it once with only a simple bot and only 4 instances, just account creation, as it started it was fine but then once all four instances were up it consumed a lot of system resources and slowed down my monster.

 

Praney

Well then, won't the same thing happen in 1 program with 4 threads? :P

Link to post
Share on other sites

No, because true windows multithreading makes more efficient use of system resources/CPU, than for example, 4 bot instances running simultaneously. ;)

That would be true if it weren't for the fact that each thread instance requires an Internet explorer instance to run along with it, which consumes almost as many resources as if we were running 4 separate processes with an internet explorer instance in each one.

 

One way to get around this I suppose is to make each thread run in a separate tab of the same internet explorer instance. But, knowing IE internals, I don't see this happening anytime soon :(

Link to post
Share on other sites

That would be true if it weren't for the fact that each thread instance requires an Internet explorer instance to run along with it, which consumes almost as many resources as if we were running 4 separate processes with an internet explorer instance in each one.

 

One way to get around this I suppose is to make each thread run in a separate tab of the same internet explorer instance. But, knowing IE internals, I don't see this happening anytime soon :(

 

I take that back IRobot, you were correct (and I was an unthinking idiot!). I think I've stumbled across something cool in .NET that should allow Seth to implement multithreading in Ubot. Brb doing some coding :P

Link to post
Share on other sites

Nailed it! Using Watin of course :P

 

http://img52.imageshack.us/img52/7977/52772342.jpg

 

Here is a proof of concept showing how you can run multiple IE instances in multiple threads within one C# application by passing a WebBrowser instance as an argument to the WatiN constructor:

 

Here is the demo exe:

 

http://sites.google.com/site/metermeter1/herpderp/poc.zip?attredirects=0&d=1

 

And here is the source:

 

http://sites.google.com/site/metermeter1/herpderp/WindowsFormsApplication3.zip?attredirects=0&d=1

 

@Seth: Better hurry with that WatiN implementation :P

 

PS IRobot was correct! Running multiple instances within one process doesn't consume that many resources or memory at all!

  • Like 3
Link to post
Share on other sites

This has turned into a great discussion. Great work there meter :)

 

That is right running multiple threads using same IE instance will not consume only the resources taken by a single application.

 

threading is needed for sure , but the point of discussion here was the use of thread command for multi-threading in Ubot Studio, but it took off certain heights and jumped into aspects of core programming.

 

Keep up the good work guys :)

 

Praney

Link to post
Share on other sites

I found a simple solution to my problem. I am actually doing what meter said.

 

I made 4 copies of my bot. I start them all at once and each has a different txt file. I can confirm that this runs SMOOTHLY on my pc.

 

I have Core2Duo, 4gb ram and the 4 bots consume only 5% of the CPU. I will also try what you guys said but I doubt it can get simpler than this.

 

This means I should try running 80 bots at once then :rolleyes:

Link to post
Share on other sites

Nailed it! Using Watin of course :P

 

http://img52.imageshack.us/img52/7977/52772342.jpg

 

Here is a proof of concept showing how you can run multiple IE instances in multiple threads within one C# application by passing a WebBrowser instance as an argument to the WatiN constructor:

 

Here is the demo exe:

 

http://sites.google.com/site/metermeter1/herpderp/poc.zip?attredirects=0&d=1

 

And here is the source:

 

http://sites.google.com/site/metermeter1/herpderp/WindowsFormsApplication3.zip?attredirects=0&d=1

 

@Seth: Better hurry with that WatiN implementation :P

 

PS IRobot was correct! Running multiple instances within one process doesn't consume that many resources or memory at all!

 

can somebody help me to explain how to implement this? Thanks

Link to post
Share on other sites

yup your right - if i try to use the thread command for multiple browsers then it gets confused and doesnt work correctly

 

thanks for the heads up Praney -

Link to post
Share on other sites

can somebody help me to explain how to implement this? Thanks

This is an example of how to use the multithreading library. NET

I also look forward to positive information when ubot will be true multithreading

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