Jump to content
UBot Underground

Autorun a compiled bot using Windows tasks scheduler


Recommended Posts

Hi,

 

I created a bot with Ubot studio 4, and was able to auto run it with windows tasks scheduler using "/auto" argument at the end of the target file.

My compiled bot opened and then ran itself and closed.

 

I need today tu update this one but it's impossible tu auto run it, the bot opens but does not start.

I know that there is a new feature "run scheduler" with ubot studio 5 but I can't use i because I can't let the bot always open.

 

Could you help me ? or give me a way to download Ubot studio 4 please to make me able to update my bot ?

 

Thanks

Link to post
Share on other sites

 

Hi,
 
I created a bot with Ubot studio 4, and was able to auto run it with windows tasks scheduler using "/auto" argument at the end of the target file.
My compiled bot opened and then ran itself and closed.
 
I need today tu update this one but it's impossible tu auto run it, the bot opens but does not start.
I know that there is a new feature "run scheduler" with ubot studio 5 but I can't use i because I can't let the bot always open.
 
Could you help me ? or give me a way to download Ubot studio 4 please to make me able to update my bot ?
 
Thanks

 

 

Go to http://support.ubotstudio.com and put a ticket in for the download. 

 

Regards, 
HaHaItsJake
Link to post
Share on other sites

Just as an FYI to those who want to schedule.  I have a bot that I want to run several times a day.  When trying to think about how to schedule it (I don't have the scheduler) I just put in a delay, exported to EXE and run it on a virtual machine.  Now it runs, waits a few hours, runs, etc.  Just use a loop with a lot of repetitions.  I think most recently it ran for about a month straight.

Link to post
Share on other sites

Rather than using Task Scheduler to start the .exe, have it start a batch file - .bat that contains the path to your exe and then /auto at the end.

 

So for example:

"C:\Path to your software" /auto

  • Like 1
Link to post
Share on other sites

Rather than using Task Scheduler to start the .exe, have it start a batch file - .bat that contains the path to your exe and then /auto at the end.

 

So for example:

"C:\Path to your software" /auto

 

It is my understanding that UBot 5 no longer supports the /auto facility, you either have to use the in built scheduler, which is suitable for some but definitely not all situations, or if you have the developer edition I think you will be able to use the "on load" command to achieve the same thing.

Link to post
Share on other sites

There is another way of doing that:

It's not my idea. Found that here in the forum a while ago.

 

ui stat monitor("<script type=\"text/javascript\">
    window.setTimeout(function() \{ ubot.runScript(\'definesub()\') \}, 500)
</script>""")
define definesub {
    navigate("http://www.google.com/""Wait")
    change attribute(<name="q">"value""Test")
    alert("Done!")
}

 

Cheers

Dan

Link to post
Share on other sites

Here are my few cents...as a temporary solution (I hope /auto get's supported in v5) you can use Command Line Arguments plugin to pass /auto parameter to exe when starting it.... This way code won't start when you open it in UBot and will only start when you pass /auto parameter.

 

Here is the upgraded code:

ui stat monitor("<script type=\"text/javascript\">
    window.setTimeout(function() \{ ubot.runScript(\'definesub()\') \}, 500)
</script>", "")
define definesub {
    if($contains($plugin function("Command Line Arguments.dll", "$command line arguments"), "/auto")) {
        then {
            navigate("http://www.google.com/", "Wait")
            change attribute(<name="q">, "value", "Test")
            alert("Done!")
        }
        else {
        }
    }
}

  • Like 1
Link to post
Share on other sites
  • 2 months later...

Ubot 4 no longer supports /auto. Why in the world would you deprecate that? to force us use buged version v5?

 

i just need to update one of my old bots that were running on autopilot, but it no longer runs with /auto.

 

There is scheduler inside ubot, but let me see if i understand this: i need to start bot and keep it open to run on scheduled time? If that si the case then i suggest u drop this feature because it is useless. Who in the world will have 10 bots open just to wait and run witht hat feature.

 

Also i see i need to click run as scheduled? So i was thinking, ok /auto is no longer here, i can open a bot without /auto, but how the hell will i click run as scheduled button? Please explain how are those bot run on schedule if i need to do something manual?

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