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 » Thu Aug 15, 2013 12:31 pm

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: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Scripts Dir

#2 Post by Administrator » Thu Aug 15, 2013 6:12 pm

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: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Scripts Dir

#3 Post by Administrator » Fri Aug 16, 2013 8:36 pm

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 » Wed Aug 21, 2013 6:59 am

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

Who is online

Users browsing this forum: No registered users and 22 guests