addamroy 36 Posted December 1, 2011 Report Share Posted December 1, 2011 Is there any way to auto-run part of a bot when it's opened? I'm trying really hard to find a way to pre-load a previous project and/or some kind of default project possibly via a file somehow. For example, when the bot opens a custom command runs that pre-populates data into ubot from a .txt or .csv file. Quote Link to post Share on other sites
Praney Behl 314 Posted December 1, 2011 Report Share Posted December 1, 2011 I think the closest is using UI Button if you have the Dev. license. Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted December 1, 2011 Report Share Posted December 1, 2011 Some sort of UI Pre load would be great to pre load or run a set of commands as soon as the bot loads. Quote Link to post Share on other sites
a2mateit 395 Posted February 21, 2012 Report Share Posted February 21, 2012 I am also looking for a way to auto run a node as soon as the compiled bot is opened... Is this possible at the moment? Justin Quote Link to post Share on other sites
rusty 0 Posted February 22, 2012 Report Share Posted February 22, 2012 +1 in auto running a node. Quote Link to post Share on other sites
JohnB 255 Posted February 22, 2012 Report Share Posted February 22, 2012 Not at the moment no...at least not from within ubot...you could auto run them from task manager, but that's about it John Quote Link to post Share on other sites
a2mateit 395 Posted February 22, 2012 Report Share Posted February 22, 2012 Hey John, Thanks for the reply. Any chance this is on the to do list, or even being considered. Doesn't seem like it would be that hard to implement, and I could see many uses for it. I.E.- Auto-populating ui elements when the bot is opened to simplify thing for potential clients... Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted February 22, 2012 Report Share Posted February 22, 2012 Been looking forward for this.. Maybe Im wrong, I think its not hard to implement since UI stat monitors are already running automatically when you open your bot. Quote Link to post Share on other sites
Eddie Waller 158 Posted February 22, 2012 Report Share Posted February 22, 2012 This is something being considered, we're not sure on the best way to implement it yet. Right now our idea would be to have a node like "initialize" which you could put commands in that you want to be run when you open your bot file. It might look something like this: initialize { set(#x, 10, "Global") navigate("google.com") } So then when the user opened your bot it would set #x to 10 and navigate to google. Setting variables could be useful to give the UI default values. If you have critiques on that idea or suggestions of a better way to handle this problem let me know. Quote Link to post Share on other sites
a2mateit 395 Posted February 22, 2012 Report Share Posted February 22, 2012 This is something being considered, we're not sure on the best way to implement it yet. Right now our idea would be to have a node like "initialize" which you could put commands in that you want to be run when you open your bot file. It might look something like this: initialize { set(#x, 10, "Global") navigate("google.com") } So then when the user opened your bot it would set #x to 10 and navigate to google. Setting variables could be useful to give the UI default values. If you have critiques on that idea or suggestions of a better way to handle this problem let me know. I think that seems like a good way to handle it. Very straight forward, and I believe would work out very well. Great to see it being considered. Thanks,Justin Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted February 22, 2012 Report Share Posted February 22, 2012 i think that would also be a great idea. reasons such as remotely updating lists elements that are able to be chosen from a dropdown, or list box, variables, etc.. anything for that matter that would be good to pre-load on start up would be great. Quote Link to post Share on other sites
AutoIM 5 Posted February 22, 2012 Report Share Posted February 22, 2012 It might look something like this: initialize { set(#x, 10, "Global") navigate("google.com") } That would be a good way of achieving it, I could use it in that way. Looking forward to seeing it in a future update ! Phil Quote Link to post Share on other sites
Chainsaw 9 Posted February 23, 2012 Report Share Posted February 23, 2012 Not sure what the problem is. Just check to see if UI variables have a value yet, if not load the value from file. 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.