Page 1 of 1

Starting a custom function (from userfuction_xxxx) from CLI

Posted: Tue Jan 20, 2015 5:23 pm
by Space-Junk
I have a function I made which I use regularly from commandline, how do I do this in a batch file. I want to be lazy and just click an icon on my shortcut bar instead of starting the bot, starting commandline and typing the function name.

Lets say the user function is called ImLazy() and is inside a userfunction called something like userfunction_lazyarse.lua

Re: Starting a custom function (from userfuction_xxxx) from

Posted: Wed Jan 21, 2015 12:23 am
by rock5
You can't create a batch file that starts the commandline and then issues a command to it, I think. But you can run a waypoint file. Look at the existing bat files in the rom folder to get an idea how. Then you just need to make a waypoint file that just runs your function. Eg.

Code: Select all

<waypoints>
    <onload>
        ImLazy()
        error("Finished")
    </onload>
</waypoints>
Edit: Actually I see only 1 bat file that starts a waypoint file and that is StartCommandLine.bat. And before you ask commandline.xml is actually a waypoint file.