Aeonx Posted February 19, 2016 Share Posted February 19, 2016 Hello, I wonder whether there's a way, to run a script via API like RunScript("scriptName") from SDN? Thanks Quote Link to comment Share on other sites More sharing options...
GoldenGates Posted February 19, 2016 Share Posted February 19, 2016 Hello, I wonder whether there's a way, to run a script via API like RunScript("scriptName") from SDN? Thanks You can only script stuff using the API in a script itself, so no you can't. Quote Link to comment Share on other sites More sharing options...
Aeonx Posted February 19, 2016 Author Share Posted February 19, 2016 (edited) You can only script stuff using the API in a script itself, so no you can't. Thanks, would it be against the rules coding up a custom script starter then? (As a script, API) Edited February 19, 2016 by Aeonx Quote Link to comment Share on other sites More sharing options...
FrostBug Posted February 19, 2016 Share Posted February 19, 2016 Thanks, would it be against the rules coding up a custom script starter then? (As a script, API) How would that work? You'd still have to have access to download the script from SDN The script executor is easy to use once you have the script in memory (or with local scripts) getBot().getScriptExecutor().prepare(some_script); getBot().getScriptExecutor().start(some_script); Quote Link to comment Share on other sites More sharing options...
Aeonx Posted February 20, 2016 Author Share Posted February 20, 2016 How would that work? You'd still have to have access to download the script from SDN The script executor is easy to use once you have the script in memory (or with local scripts) getBot().getScriptExecutor().prepare(some_script); getBot().getScriptExecutor().start(some_script); Oh that's actually exactly what I was looking for, thanks! =) Quote Link to comment Share on other sites More sharing options...