A few questions about organisate workflow and others

Support
  • Okay, that works for me.
    Very nice.

    So now i have a bigger problem i think.

    I have a variable called RELOAD which is an string with the value 120-180.

    I go to use the "Time now" command and save it to variable TIME.
    Now i use the "Add seconds to date" command and try to add a random value from 120 to 180 seconds to it.

    I need that to define a reload on the scripts in case that the sites are not allow to come to often.

    Edit:
    I resort the thing now.
    "Time now" saves the value in the variable "TIME", then i create a random string from SITE_TLD_RELOAD_MIN to SITE_TLD_RELOAD_MAX and save that to SITE_TLD_RELOAD_VALUE variable.
    In the "Add seconds to date" command i let him use the actual time from "TIME" variable and calculate the value from SITE_TLD_RELOAD_VALUE on it to save it as variable SITE_TLD_RELOADTIME.

    I think that this work, but first can say if it works when i find a way to not let the function running befor the value from SITE_TLD_RELOADTIME is over.

    Edit2:

    Try to save the content from SITE_TLD_RELOADTIME with "Updates records by creteria" but it wont work.
    The database column is on "Date" but it show year 1970 what not can be right.
    From Result command gives out the right time.

    Kind regards from Berlin

  • Forget what i write above. xD

    I find another way where i use the following:

    On the function i use "Date now" command for variable TIME, then i add the created random string from SITE_TLD_RELOAD_MIN to SITE_TLD_RELOAD_MAX to this which i save in variable SITE_TLD_RELOADTIME.

    Now i will use the "Substract Dates" command to calculate SITE_TLD_RELOADTIME - TIME to save the result in TIME2.

    To here all works fine.
    Now comes the actual problem.

    I will use the "IF" command which start a function only when the TIME2 variable is smaller then 0.

    Any hints for that?

    Kind regargs from Berlin.

  • @icemails if [[TIME2]] < 0

  • @fox said in A few questions about organisate workflow and others:

    < 0

    Thanks, i try it bevor with if [[TIME2]] =< 0 in case that it work on the match line i use with ==.

    So many thanks, now only a few things are open to solve and the bot can goes public.

    Anyone has a recaptcha2 plugin for xevil?
    Can`t use the 2captcha remote function in xevil.

    Kind regards from Berlin

  • So another questions for the weekend from me. xD

    I want to make a GUI for my Bot and need a bit knowledgebase on that.

    Is it possible to make the gui like this:

    http://prntscr.com/msg6gb

    I hope the picture is understandable.

    Green area is to choose activated sites.
    Yellow area is a statistic from actual run since programmstart.
    Red area are Scrollbars to go down.

    On the line below which has "SiteName.tld - 409" in it the user can put in his login credentials and see all succesfully workarounds from the bot since they use it.

    So my questions are:

    Actual i have all the data in a database like site active, password, username and others.
    Did i need to make ressources from them or did the gui works with the database to modify the credentials?

    Is a scrollbar possible in the gui?

    Can the fields username and password be variable from site to site.

    Kind regards from berlin.

  • @icemails said in A few questions about organisate workflow and others:

    So another questions for the weekend from me. xD
    I want to make a GUI for my Bot and need a bit knowledgebase on that.
    Is it possible to make the gui like this:
    http://prntscr.com/msg6gb

    Web interface allows you to create any interfaces. If you have enough knowledge and experience of layout.

    @icemails said in A few questions about organisate workflow and others:

    Actual i have all the data in a database like site active, password, username and others.
    Did i need to make ressources from them or did the gui works with the database to modify the credentials?

    The web interface has access to the database directly.

    Here is the code from the documentation, it should work:

    Api.DatabaseCount([], TableId).then(function(RecordCount){
       alert(RecordCount)
    })
    
    

    To get the table id, you need this code:

    Api.GetDatabaseStructure()
       .find(function(table){return table.name == "table1"})
       .id
    

    It is also in the documentation, a little higher.

  • Wow thanks so much.

    But looks like i need to search a person which make that for me.
    Did you think 20 Dollar are a good value for that work to search?

    Away a bit Playing with the GUI.

    Kind regards from Berlin.

  • So the bot grows and grows.
    But now i have another problem on it.

    I will make a pause which is on every day at a certain time with an offset and upset from x minutes.
    As example i will configure that it makes every day from 4 am to 10 am a pause which can start until an hour for 4 am and last until an half hour after 10 am.

    That it looks like more Human.

    And if i use a function called "OnApplicationStart" it will run before the main function begins the work to use it to become variables content and other stuff like that?

    Kind regards from Berlin

  • @icemails said in A few questions about organisate workflow and others:

    And if i use a function called "OnApplicationStart" it will run before the main function begins the work to use it to become variables content and other stuff like that?

    The "OnApplicationStart" function is executed once at the beginning of the script execution before all threads start. Data from this function can be passed through global variables or resources.

  • @fox good to know, that makes my script a bit more compact.

    Can you help me on the scheduled pause problem?

    Scheduled Pause should be changeable via GUI, but first i need to figure out how i set them.

    As example i want that the bot not work from 4-8 am with an up and offset from 30 minutes to let it look more human.

    Kind regards from Berlin.

  • BASPremium Question

    Support
    0 Votes
    4 Posts
    486 Views
  • Question about BAS

    Support
    0 Votes
    1 Posts
    493 Views
  • HTTPCLIENT question

    Support
    0 Votes
    5 Posts
    821 Views
  • 0 Votes
    2 Posts
    504 Views
  • 0 Votes
    3 Posts
    881 Views