Jump to content
UBot Underground

[FREE TUTORIAL] Schedule BATCH + Onload


Recommended Posts

This snippet might be useless for some, but it helped me out allot  :P

 

Normally I would use the restart app plugin but i'm still having some problems with that one.

 

Now i'm using a simple batch solution to schedule my apps, running 5 days now and no problems so far!

 

 

loop.bat
@echo off (Hide CMD logs)

:loop
taskkill /f /im ubot_bot.exe
timeout /t 5 >null
start "C:\Users\Administrator\Desktop" ubot_bot.exe
timeout /t 3600 >null
goto loop 

With Onload snippet from Kreatus it works like a charm   :D

 

Ubot built in onload loads immediately after you open your bot. The reason it freeze. Its trying to execute everything at once.

This one will wait until the bot is fully loaded then execute your script.

ui html panel("<script type=\"text/javascript\">
    window.setTimeout(function() \{ ubot.runScript(\'autoload()\') \}, 1000)
</script>", 0)

define autoload {
alert("HELLO MARS")
}
  • Like 2
Link to post
Share on other sites
  • 2 weeks later...

you can use these too

 

plugin command("File Management.dll""open file""{$special folder("Application")}\\ubot.bot.exe")
plugin command("close bot.dll""Exit Program")
 

File Management http://www.ubotstudio.com/forum/index.php?/topic/13237-free-file-management-plugin-multiple-commands-and-functions/

close bot http://www.ubotstudio.com/forum/index.php?/topic/12765-free-free-plugin-close-bot-command/

 

and to run batches ez pz use this

 

http://ubotdev.com/free-plugin-advanced-shell

 

there are a few others you will want to pick up there too for free

TC

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