Scripts Dir

Discuss, ask for help, share ideas, give suggestions, read tutorials, and tell us about bugs you have found with MicroMacro in here.

Do not post RoM-Bot stuff here. There is a subforum for that.
Forum rules
This is a sub-forum for things specific to MicroMacro.

This is not the place to ask questions about the RoM bot, which uses MicroMacro. There is a difference.
Post Reply
Message
Author
aliex
Posts: 12
Joined: Thu Feb 10, 2011 6:54 am

Scripts Dir

#1 Post by aliex »

Hello! Is there a way to define where the Script Dir is? Right now i have to copy all my scripts in "micromacro/scripts", it would be nice if i could tell MM to load the scripts from "D:\Bots\Scripts" or from anywhere else.
User avatar
Administrator
Site Admin
Posts: 5342
Joined: Sat Jan 05, 2008 4:21 pm

Re: Scripts Dir

#2 Post by Administrator »

No, it is, at the time being, compiled into the executable (micromacro.exe). However, I'll put this on my to-do list to move that to a config variable.

You can specify a full path to a script when running it from the command line, though:

Code: Select all

micromacro.exe D:\Bots\Scripts\script.lua
User avatar
Administrator
Site Admin
Posts: 5342
Joined: Sat Jan 05, 2008 4:21 pm

Re: Scripts Dir

#3 Post by Administrator »

I've worked something up pretty quick. You can test it for me.
You'll only need to update your micromacro.exe and add this line to your config.lua file:

Code: Select all

	scriptsDirectory = "D:/Bots/Scripts/";
aliex
Posts: 12
Joined: Thu Feb 10, 2011 6:54 am

Re: Scripts Dir

#4 Post by aliex »

Administrator wrote:I've worked something up pretty quick. You can test it for me.
You'll only need to update your micromacro.exe and add this line to your config.lua file:

Code: Select all

	scriptsDirectory = "D:/Bots/Scripts/";
Works perfect. thanks! :geek:
Post Reply