@John_D Here is an example, you can change the file save location and output format.
Screenshot_20.png
How to run one script after another?
-
I have "scripted" over 100 sites now.. and want them to run on 10-20 therads,, because on 1 thread it takes like an hour to complete :/ (manual captchas.. some human emulation)
So far what i have done:
- every site on different function
- call function to each site
I know i could do with thread_index and call like in previous post.. but i would like to be able to choose dynamically thread number..
Here is an example for 12 functions.. is there a way i can say for example make them to run on 3 threads.. without using if conditions to all of them? So lets say:
First thread takes "a" second takes "b", third takes "c".. and then.. whichever thread finished first takes "d", next one takes "e".. and so on..
-
All the answers are already there, you just have to
deploy them in your example.Use thread number like shown seems best sollution.
Nevertheless there is one more choice you have and
it is using resources.You can create a new resource and use default settings - lines from file, so bas will use this resource only once per line accross multiple threads - whatever number you set, in
your current case 3 threads.You would use resource lines from file only as pointer for
your actions just like with THREAD_INDEX. And you also need
simple if checking to determine what current thread should do.So you can create text file with number of actions you have and
single letters wont be enough for 100+ actions, use numbers instead and put one number in each line from
1 - 100 for example. When start bot with 3 threads it will
use first 3 numbers from list and continue as you described as desired
until it reach end of resource list which will cause bot to stop
under default settings. -
Wow that was a pain in the ass for me.. it seems that i sux at programming :)
@support .. i have no idea how to get thread number to thread index.. should i create new variable?
I have only done something like this:

@GaG ive tried your method.. and after like 30 minutes of trying ive finally did it :)
For 2 threads:
- Ive created txt with just plain numbers
- Created resource "pointers" -> lines from file
- Created logic if -> pointer == 1 -> call a
- Created logic if -> pointer == 2 -> call b
- Created logic if -> pointer == 1 -> call c
- Created logic if -> pointer == 2 -> call d
Big thx
-
I meant more like >
-
Ive created txt with just plain numbers (for 10 actions/sites I have num 1 - 10)
-
Created resource "pointers" -> lines from file
-
Created logic if -> pointer == 1 -> call a site actions
Created logic if -> pointer == 2 -> call b site actions
Created logic if -> pointer == 3 -> call c site actions
Created logic if -> pointer == 4 -> call d site actions
Created logic if -> pointer == 5 -> call e site actions
Created logic if -> pointer == 6 -> call f site actions
Created logic if -> pointer == 7 -> call g site actions
Created logic if -> pointer == 8 -> call h site actions
Created logic if -> pointer == 9 -> call i site actions
Created logic if -> pointer == 10 -> call j site actions -
Now set bas to use 2 threads and start bot and it will
do a and b in first cycle, c and d in second and so on,
2 threads at a time.
Hope it works for you good, nice to hear problem solved
(with a bit of abstraction lol) -
-
@plantacja said in How to run one script after another?:
Wow that was a pain in the ass for me.. it seems that i sux at programming :)
@support .. i have no idea how to get thread number to thread index.. should i create new variable?
I have only done something like this:Youre missing what they told you to do. Just add
following to very beggining of your script
Just type thread in search and choose that action.
-
Lol im really ashamed.. how could ive missed that option :) thx @GaG
@gag said in How to run one script after another?:
I meant more like >
-
Ive created txt with just plain numbers (for 10 actions/sites I have num 1 - 10)
-
Created resource "pointers" -> lines from file
-
Created logic if -> pointer == 1 -> call a site actions
Created logic if -> pointer == 2 -> call b site actions
Created logic if -> pointer == 3 -> call c site actions
Created logic if -> pointer == 4 -> call d site actions
Created logic if -> pointer == 5 -> call e site actions
Created logic if -> pointer == 6 -> call f site actions
Created logic if -> pointer == 7 -> call g site actions
Created logic if -> pointer == 8 -> call h site actions
Created logic if -> pointer == 9 -> call i site actions
Created logic if -> pointer == 10 -> call j site actions -
Now set bas to use 2 threads and start bot and it will
do a and b in first cycle, c and d in second and so on,
2 threads at a time.
Hope it works for you good, nice to hear problem solved
(with a bit of abstraction lol)Ive tried this but it only does first cycle and then stops.. i mean for 2 threads it only takes call and and b,, then finishes script as success..
-
-
Try adding a "set label" tag something like "pointer 1 back" and then add a move to "pointer 1 back" command at the end of the "call function".
