Jump to content



Photo

Thread Spawn With Account Data Issue

thread threading mutli threading multi thread thread spawn account data issue

  • Please log in to reply
8 replies to this topic

#1 vemomedia

vemomedia

    Advanced Member

  • Members
  • PipPipPip
  • 54 posts
  • Locationatlanta ga
  • OS:Windows 10
  • Total Memory:6Gb
  • Framework:v4.5+, unsure
  • License:Standard Edition

Posted 29 December 2016 - 07:28 PM

Ok so im having a big issue, ive been trying to use thread spawn to make accounts but when i use the account data to generate usernames, passwords, emails it uses the same info on each thread, ive also tried changing it to local instead of global but no luck, even used account reset but maybe im placing it in the wrong position idk, but what i am trying to do is make a simple account creator with the account data parameters via thread spawn. Ive been stuck on this for hours now and its driving me crazy!!!!!!!!!



#2 Bot-Factory (Dan)

Bot-Factory (Dan)

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 2945 posts
  • LocationEurope/Germany
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 31 December 2016 - 03:15 AM

Ok so im having a big issue, ive been trying to use thread spawn to make accounts but when i use the account data to generate usernames, passwords, emails it uses the same info on each thread, ive also tried changing it to local instead of global but no luck, even used account reset but maybe im placing it in the wrong position idk, but what i am trying to do is make a simple account creator with the account data parameters via thread spawn. Ive been stuck on this for hours now and its driving me crazy!!!!!!!!!

 

Please post some code. Otherwise it's hard to help you. There is probably something messed up with variables and/or defines.

 

Dan


Signature-JPG.jpg


#3 Code Docta (Nick C.)

Code Docta (Nick C.)

    Member for Hire

  • Fellow UBotter
  • PipPipPip
  • 1340 posts
  • LocationIn a Python or UBot IDE or ubotdocta.com
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 31 December 2016 - 04:41 AM

You can also try making the accounts first and save to file or list, then loop through the list.

 

What version of ubot are you using?

You can also try Thread Docta too.

 

CD


UBot Expert Tutorials

 

ubot-docta-header-ubot-expert-store.png

 

UBot expert tutorials and documentation at ubotdocta.com


#4 vemomedia

vemomedia

    Advanced Member

  • Members
  • PipPipPip
  • 54 posts
  • Locationatlanta ga
  • OS:Windows 10
  • Total Memory:6Gb
  • Framework:v4.5+, unsure
  • License:Standard Edition

Posted 31 December 2016 - 11:24 AM

You can also try making the accounts first and save to file or list, then loop through the list.

 

What version of ubot are you using?

You can also try Thread Docta too.

 

CD

the latest, and im going to look at thread docta now



#5 vemomedia

vemomedia

    Advanced Member

  • Members
  • PipPipPip
  • 54 posts
  • Locationatlanta ga
  • OS:Windows 10
  • Total Memory:6Gb
  • Framework:v4.5+, unsure
  • License:Standard Edition

Posted 31 December 2016 - 11:26 AM

my issues seem to be that it doesnt exactly let me change proxy for each thread, sometimes it will but when i added my define into the thread it wont work, then when i fixed it then proxies stopped changing and then i used the next list item and it worked but then i would get the exceeded the range of the list error, maybe if i can figure out how to bypass the next list issue i would be fine



#6 Bot-Factory (Dan)

Bot-Factory (Dan)

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 2945 posts
  • LocationEurope/Germany
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 31 December 2016 - 05:29 PM

my issues seem to be that it doesnt exactly let me change proxy for each thread, sometimes it will but when i added my define into the thread it wont work, then when i fixed it then proxies stopped changing and then i used the next list item and it worked but then i would get the exceeded the range of the list error, maybe if i can figure out how to bypass the next list issue i would be fine

 

In my opinion thread spawn is not the best approach for something like this. I would use regular threading where you can manage everything manually. 
This is much easier. 

And you have to hand over the correct proxy from the outside of the thread to the define that runs within the thread. You should not use next list item within the thread.

Dan


Signature-JPG.jpg


#7 vemomedia

vemomedia

    Advanced Member

  • Members
  • PipPipPip
  • 54 posts
  • Locationatlanta ga
  • OS:Windows 10
  • Total Memory:6Gb
  • Framework:v4.5+, unsure
  • License:Standard Edition

Posted 01 January 2017 - 12:21 PM

In my opinion thread spawn is not the best approach for something like this. I would use regular threading where you can manage everything manually. 
This is much easier. 

And you have to hand over the correct proxy from the outside of the thread to the define that runs within the thread. You should not use next list item within the thread.

Dan

 

hey dan, how would i make this into a multi thread if i only use the "thread" command ?



#8 Bot-Factory (Dan)

Bot-Factory (Dan)

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 2945 posts
  • LocationEurope/Germany
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 01 January 2017 - 01:25 PM

hey dan, how would i make this into a multi thread if i only use the "thread" command ?

 

Hi.

 

There are a couple of tutorials available here in the forum. Or via a google search.

But basically you control and manage your threads manually. 

 

Something like this:


    plugin command("Advanced Ubot.dll", "threads counter", "Reset")
    set(#localcounter,0,"Local")
    loop($plugin function("Bigtable.dll", "Large list total", "keywords")) {
        loop while($comparison($plugin function("Advanced Ubot.dll", "$threads counter monitor", "Total Threads"),">=",10)) {
            wait(0.1)
        }
        set(#proxy,$plugin function("Bigtable.dll", "Random Large list item", "proxylist"),"Local")
        if($comparison(#proxy,"=","list doesnt exist")) {
            then {
                set(#proxy,"","Local")
            }
        }
    	set(#status,"Checking Proxy {#localcounter}:{$plugin function("Bigtable.dll", "Large list total", "proxylist")}","Global")

        plugin command("Advanced Ubot.dll", "threads counter", "Increment")
        myThreadDefine($plugin function("Bigtable.dll", "Large list item", "keywords", #localcounter), #proxy)
        increment(#localcounter)
    }
    loop while($comparison($plugin function("Advanced Ubot.dll", "$threads counter monitor", "Total Threads"),">",0)) {
        wait(0.1)
    }

myThreadDefine in this example is the define that has the actual code.

define myThreadDefine(#localkeyword, #localproxy) {
    thread {
        comment("Your Code")
    }
}

Instead of the Advanced ubot plugin you can also use the FREE Threads Counter Plugin:

 

You can replace them with the following commands (Not the actually Code. Just the commands and functions.)

ui stat monitor("Threads",$plugin function("Threads Counter.dll", "threads counter", "read"))
set(#threads,$plugin function("Threads Counter.dll", "threads counter", "reset"),"Global")
set(#threads,$plugin function("Threads Counter.dll", "threads counter", "increment"),"Global")
set(#threads,$plugin function("Threads Counter.dll", "threads counter", "decrement"),"Global")
 
 
loop while($comparison($plugin function("Threads Counter.dll", "threads counter", "read"), ">=", 10)) {
            wait(0.1)
        }
 
loop while($comparison($plugin function("Threads Counter.dll", "threads counter", "read"), ">", 0)) {
        wait(0.1)
    }
 
 
Someone told me, that you can now also use regular variables to track threads. But I didn't test that. In the past regular variables with increment and decrement didn't work correctly. 
 
Dan

Signature-JPG.jpg


#9 Bot-Factory (Dan)

Bot-Factory (Dan)

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 2945 posts
  • LocationEurope/Germany
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 01 January 2017 - 01:27 PM

Here's a little tutorials as well:

 

 

What I do NOT like in this video.. The thread command should be in the define command that executes the thread code. Not in the launcher routine.

Specially if you hand over variables.

 

Dan


Signature-JPG.jpg






Also tagged with one or more of these keywords: thread, threading, mutli threading, multi thread, thread spawn, account data, issue

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users