How to run one script after another?



  • Hello. I need to create video uploader bot which upload 1 video to several sites .I guess that i must create 1 script for each website... but how to run one script after another fully automated. Can this be done with BAS?



  • @ek3ekytop google translate - Привет - можно сделать сценарий для каждого веб-сайта и "обернуть в функцию" - а потом делать вызов функции
    1_1477822350429_11111111111111111.png
    0_1477822350398_2222222222222222.png

    0_1477822394542_test_video_upload.xml


  • administrators

    @ek3ekytop You can create several functions like UploadYoutube, UploadVimeo, etc and call them sequentinally. So main function will have just list of differend upload function call.

    If it is not an option for you, you can compile several scripts for each video hosting and create batch file with lines

    UploadYoutube\engine\engine\FastExecuteScript.exe --silent
    UploadVimeo\engine\engine\FastExecuteScript.exe --silent
    


  • I have similiar problem... but i dont wont them to be run sequentially but rather simultaneously.

    Ive created sample script.. which just opens 2 sites

    0_1508171190153_sample.xml

    Created 2 function :craigslist and google (they just opens home page)
    Created 2 call function in main function.
    Now i would like to know how can i use multihreading to run them all at once.. not sequentially

    Thx


  • administrators

    @plantacja

    You need to use something like this

    Get Thread number to [[THREAD_INDEX]]
    if [[THREAD_INDEX]] == 0
        call craigslist
    if [[THREAD_INDEX]] == 1
        call google 
    


  • Thx will try it out



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

    0_1522423618760_example.xml



  • Hey guys noone can help me? Hope one day it will be scripted :) Its a basic funcation for softwares like magic submitter, senuke etc.. and i would like to also be able to register to dozens of sites at the same time


Log in to reply
 

Looks like your connection to Bablosoft was lost, please wait while we try to reconnect.