Patrick_ 4 Posted June 17, 2014 Report Share Posted June 17, 2014 This snippet might be useless for some, but it helped me out allot 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 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") } 2 Quote Link to post Share on other sites
bestmacros 60 Posted June 17, 2014 Report Share Posted June 17, 2014 you can also use ubot_bot.exe /auto Quote Link to post Share on other sites
zenos 13 Posted June 18, 2014 Report Share Posted June 18, 2014 Really cool, thanks for the trick Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted July 2, 2014 Report Share Posted July 2, 2014 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 freeTC Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.