Lancelot 0 Posted September 18, 2018 Hi all, Does Dreambot have a high-level API for controlling the starting and stopping of scripts? Ideally, it'd be great to run a script with arguments so that I could achieve the following: Start ScriptX as user [username]. Note that 'ScriptX' would always be a custom script that interfaces with the 'control script' - and thus would expect to be passed an argument with the account's username and password. I've had a look through the Javadocs but can't really find anything above the client. I've also searched the forums - though couldn't really figure out how to put my query into a search term. Alternatively, is there a plainly obvious solution to this problem that I am not seeing? Perhaps a different approach? Cheers all, H
Lancelot 0 Author Posted September 18, 2018 Perfect. This is exactly what I was looking for. Does the script just receive args from the -params flag in the usual way? From the Main function of the script?
Milasoft 202 Posted September 18, 2018 You will have to accept the parameters by overriding the onstart method @Override public void onStart(String... args) { }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.