Page 1 of 1

Adding Auto Command to Micromacro

Posted: Sat Jul 04, 2009 9:20 am
by wallofchaos
This maybe a silly question.
Is there a way to open MicroMacro and have it automatically insert the command, "rom/bot.lua"

Via a shortcut or something similar?

I know you may say. "you lazy arse!"

But as many times I close the MM window and reopen it, This would be a nice thing to do.

Probably something really simple but I havent found a way to do so.

Thank you,
as always, awesome work on all this.

Re: Adding Auto Command to Micromacro

Posted: Sat Jul 04, 2009 9:42 am
by Administrator
Of course there is. Since MicroMacro is a CLI-based software, it will accept command-line arguments. Open notepad (or any plain text editor--do not use rich text) and type this in:

Code: Select all

micromacro scripts/rom/bot.lua
When you are passing the script to MicroMacro from command line, you will need to precede it by 'scripts/' (assuming it is in the scripts folder). Other than that, it's the same basic idea. Now, you need to save it into your MicroMacro folder as "rombot.bat" (anything before the .bat can be changed). Remember to change the save-as type to "All". If you leave it as "Text Document", it will be saved as a .txt and not a .bat, which means you won't be able to run it. Now, all you need to do is double-click this new file in your MicroMacro folder, and it will start the bot.

Re: Adding Auto Command to Micromacro

Posted: Sun Jul 05, 2009 9:50 pm
by wallofchaos
I guess I dont get it, still having problems. The MM window closes as soon as I click the .bat file.

I have tried a few ways.

micromacro/micromacro/scripts/rom/bot.lua

Yes MM is inside another folder MM

Also tried micromacro/scripts/rom/bot.lua

And the one you suggested. The window just dissapears.

BotDir is "D:\micromacro\micromacro\scripts\rom"