Jump to content
UBot Underground

[Sell] Smart Thread Plugin - Easy threading


Recommended Posts

Best Plugin Kev , I could never understand multi threading specially with HTTP, But your plugin is Very Easy to use now I can multi thread any bot I want. I would recommend every new botter should have this plugin if they don't know how to deal with multi thread.

Link to post
Share on other sites
  • Replies 185
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Hi James.   I converted the example from the thread you posted. I also removed some of the stuff that was in the script that is not directly required to get the job done:   So here's the ThreadPlugin

So in general. With multithreading there are a couple of things you should be aware of.   1. Threads are running at the same time. So you can't use global variables to store data.  2. Add data to a gl

Duplicate post. I replied in the ExBrowser Thread.   Dan

how to save data with multithread

 

i am creating bulk account creator where i am making bulk account on yahoo

 

i am using account data function for account data. Now main problem is how to save data with multithread on bulk creator

 

any suggestion ?

 

i am using your plugin

Link to post
Share on other sites

how to save data with multithread

 

i am creating bulk account creator where i am making bulk account on yahoo

 

i am using account data function for account data. Now main problem is how to save data with multithread on bulk creator

 

any suggestion ?

 

i am using your plugin

There are multiple ways.

 

1. Files

2. Table

 

But this is a generic Multithreading topic. It makes no difference if you use this plugin or native ubot multithreading.

You have to ensure that data is consistent. Best is to work with counters and then use 1 table row for the data of every thread.

 

Cheers

Dan

Link to post
Share on other sites

ok list working fine

 

can you give me example how to add proxy from file on your code

 

I  tried but basic list not showing its added or not

Post your code here and we can start from there.

 

Dan

Link to post
Share on other sites

Post your code here and we can start from there.

 

Dan

 

ui open file("Proxy",#proxyfile)

plugin command("Smartthreads.dll""Threadcontrol Advanced initial", 3)

plugin command("Smartthreads.dll""Thread control Add proxys"#proxyfile"Basic List""")

plugin command("Smartthreads.dll""Thread control Advanced add""advanced one with proxies""List"%testlist"Yes")

plugin command("Smartthreads.dll""Thread control Advanced finish wait")

define advanced one with proxies(#row#proxy#listitem) {

    comment("do task one")

    in new browser {

        alert(#listitem)

    }

}

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

Ok here is somethign werid that is happening to me with this plugin.

 

In a nutshell I cant get the plugin to start loop 2 it just runs loop 1

 

For example I hit run and loop one starts. All comands within the define run perfect and the thread closes, but instead of starting the next thread/loop it simply doesn't

 

That never happens

 

I tried on Ubot 4, 5.7.1 and 5.8.5 and the exact same sitiation happens.

 

I also tried both ways advanced and normal and the second loop never starts.

 

Does somebody has a clue why this may happen?

Link to post
Share on other sites

code example please you can rename the define that the thread launches and remove its code if you wish.

 

Also if your using "thread control advanced add" one thing I see people do is select "list" instead of "loop number" this will casue the issue you have mentioned

 

thanks

kev123

Link to post
Share on other sites

@kev123 How to do thread safe for smart thread anyway? Sometimes my bot didnt complete all the loops and i reproduced its error to below script which use normal list and large list

Normal list

define Oh {
    add item to list(%AB,$rand(0,99999999),"Don\'t Delete","Global")
}
loop(15) {
    clear list(%AB)
    plugin command("Smartthreads.dll", "Thread control normal", "Oh", 100, 10, "No")
    alert($list total(%AB))
}

Large list:

define Oh {
    plugin command("Bigtable.dll""Add item to large list""AB"$random text(8))
}
loop(15) {
    plugin command("Bigtable.dll""Clear large list""AB")
    plugin command("Smartthreads.dll""Thread control normal""Oh", 100, 10, "No")
    alert($plugin function("Bigtable.dll""Large list total""AB"))
}

Link to post
Share on other sites
  • 1 year later...

Smart threads plugin watchout


 


using ubot normal threads will cause smart threads not to complete its best to only use smart threads and not combine the two

Link to post
Share on other sites
  • 10 months later...

Ok here is somethign werid that is happening to me with this plugin.

 

In a nutshell I cant get the plugin to start loop 2 it just runs loop 1

 

For example I hit run and loop one starts. All comands within the define run perfect and the thread closes, but instead of starting the next thread/loop it simply doesn't

 

That never happens

 

I tried on Ubot 4, 5.7.1 and 5.8.5 and the exact same sitiation happens.

 

I also tried both ways advanced and normal and the second loop never starts.

 

Does somebody has a clue why this may happen?

The same thing happens to me, the first "define", it is executed correctly and the second one does not, but if I press "start" again it executes it

Link to post
Share on other sites

The same thing happens to me, the first "define", it is executed correctly and the second one does not, but if I press "start" again it executes it

check your not using ubot standard threads at the same time as causes this problem better to use smart thread only

 

thanks 

kev123

Link to post
Share on other sites

check your not using ubot standard threads at the same time as causes this problem better to use smart thread only

 

thanks 

kev123

 

plugin command("Smartthreads.dll", "Threadcontrol Advanced initial", 10)

plugin command("Smartthreads.dll", "Thread control Advanced add", "run", "Loop Number", 1, "No")

plugin command("Smartthreads.dll", "Thread control Advanced add", "run2", "List", %list, "No")

plugin command("Smartthreads.dll", "Thread control Advanced finish wait")

define run {

    in new browser {

        navigate("https://www.classifiedads.com/","Wait")

        wait for browser event("Everything Loaded","")

        add list to list(%list,$plugin function("HeopasCustom.dll", "$Heopas Xpath Parser", $document text, "//a[starts-with(@href,\"//www.classifiedads.com/search.php?\")]", "InnerText", ""),"Delete","Global")

        wait(2)

    }

}

define run2 {

    in new browser {

        navigate("https://www.classifiedads.com/","Wait")

        set(#variable,$next list item(%list),"Local")

        click(<innertext=#variable>,"Left Click","No")

        wait(5)

    }

}

 

The bot stops at the end of "run"

Edited by matimagallanes
Link to post
Share on other sites

looking at the code the you are missing variables from the define all smarthread defines need to have a variable as position is passed and if you are using a list a variable for this. Also the smarthread function your using will start both defines at once which would mean your second define is called before the first is finished below is a example that should work for you. if you need anything else let me know happy to help

 

thanks kev123

 

clear list(%list)

plugin command("Smartthreads.dll", "Threadcontrol Advanced initial", 10)
plugin command("Smartthreads.dll", "Thread control Advanced add", "run", "Loop Number", 1, "No")
comment("idle command waits for any active threads to complete")
plugin command("Smartthreads.dll", "Thread control Advanced idle")
plugin command("Smartthreads.dll", "Thread control Advanced add", "run2", "List", %list, "No")
plugin command("Smartthreads.dll", "Thread control Advanced finish wait")
define run(#pos) {
    comment("simulate items being added to your list")
    add item to list(%list,"test","Don\'t Delete","Global")
    add item to list(%list,"test1","Don\'t Delete","Global")
    add item to list(%list,"test3","Don\'t Delete","Global")
    comment("the wait is just to show that define run2 will wait until this define is finished")
    wait(5)
    alert("first define complete")
}
define run2(#pos, #item) {
    comment("the list items are auto passed into the define no need to use next list item")
    alert(#item)
}

Link to post
Share on other sites

Sorry my error PM sent.

 

thanks

kev123

 

everyone else

 

Smarththread update version 1.4

 

Added "Thread Control advanced idle" this will wait until there are no active current threads

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