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
Starting a custom function (from userfuction_xxxx) from CLI
-
- Posts: 3
- Joined: Fri Jul 11, 2014 2:45 am
Starting a custom function (from userfuction_xxxx) from CLI
Code: Select all
Copy/Move all Flames and Bullshit >NIL:
Re: Starting a custom function (from userfuction_xxxx) from
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.
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.
Code: Select all
<waypoints>
<onload>
ImLazy()
error("Finished")
</onload>
</waypoints>
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Who is online
Users browsing this forum: Ahrefs [Bot] and 2 guests