Macro commands to read/write an ini in the Release folder

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

notadruid
a ghoul
a ghoul
Posts: 143
Joined: Mon Dec 08, 2003 6:02 pm

Macro commands to read/write an ini in the Release folder

Post by notadruid » Tue Jul 05, 2005 8:23 pm

Wikipage: http://www.macroquest2.com/wiki/index.php/TLO:Ini

What I'm looking for is the syntax of ${Ini} and /ini to read and write entries in an ini in the Release folder, not the release\macros folder. The intent is for a macro to change settings for a plugin when it initializes, then reload the plugin to recognize the settings stored in the ini.

Specifically, I'd like to define the melee range MQ2Autoskills uses, which is set in MQ2AutoSkills_CharName.ini in the release folder
I am not a druid.

User avatar
blueninja
a grimling bloodguard
a grimling bloodguard
Posts: 541
Joined: Thu Aug 28, 2003 7:03 am
Location: Göteborg, Sweden

Post by blueninja » Tue Jul 05, 2005 10:02 pm

You can specify an absolute path to the file as an argument to the ini command and tlo. You would have to hard code this path however, it's not availiable to macros. If you have your macro dir set up under release as it is in the distribution you could just use "..\filename.ini" ..