ubotter1 2 Posted April 29, 2013 Report Share Posted April 29, 2013 Hello - can anyone tell me how to execute a UBotStudio builtin command from within a .NET plugin script? From within my .NET plugin commands custom "Execute" method, by referencing the instance of the IUBotStudio parm I can do things like "SetVariable" in UBotStudio with no problem. But, how would I execute a buitin UBotStudio command like "change proxy", or "navigate", or "clear cookies" for example? Does not seem to be immediately obvious... Thanks Quote Link to post Share on other sites
Aymen 385 Posted April 29, 2013 Report Share Posted April 29, 2013 try this string script = "navigate(\"http://www.ubotstudio.com/resources\", \"Wait\")"; ubotStudio.RunScript(script); 3 Quote Link to post Share on other sites
ubotter1 2 Posted April 29, 2013 Author Report Share Posted April 29, 2013 Ah - perfect, thanks! Quote Link to post Share on other sites
ubotter1 2 Posted May 13, 2013 Author Report Share Posted May 13, 2013 So.... Can anyone tell me why this does not stop UBot script execution, when run within the Execute method of a custom Plugin command? ubotStudio.RunScript("stop script") Is there another way to terminated UBot script execution from within a Plugin? Thanks! Quote Link to post Share on other sites
ubotter1 2 Posted May 13, 2013 Author Report Share Posted May 13, 2013 FYI, from UBot Support: "When you use runscript it creates a new script and runs it, so when you run 'stop script' it's stopping the script you created with the runscript command." So, basically, the answer is that there is not a way to "stop" UBot project script execution from within am external plugin command. I could raise an exception, and that would terminate the script - but I don't want to trip exception handling. Oh well. 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.