Hey Guys i have a question
i Need to save informations from one micromacro to disk (like .ini files) to read out from another micromacro
a direct com with one to the other is not solving my request the data must be readable after restart from os or other reasons
have browse the wiki but not found something usefull Information
a short example for read/write data in style of .ini/hashtable is all i Need
hope you can help me
sorry for my bad english
Question: Save stuff to file and read the infomation?
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.
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.
Re: Question: Save stuff to file and read the infomation?
you might look at this it is way to write some data.
viewtopic.php?f=27&t=6049&p=63935&hilit=log#p63935
viewtopic.php?f=27&t=6049&p=63935&hilit=log#p63935
Re: Question: Save stuff to file and read the infomation?
well you have the file *****.lua and the info as a table.
inside the file would look like this
So the code to save it would be something like
then you get the info from the file using include.
That is the most basic way I can think of for what you said you wanted.
inside the file would look like this
Code: Select all
return { "socks", "shoes", "hats"}
Code: Select all
local file = io.open("filename.lua", "w")
file:write('return { "socks", "shoes", "hats"}')
file:close();
Code: Select all
tableinfo = {}
tableinfo = include("filename.lua")
table.print(tableinfo)
That is the most basic way I can think of for what you said you wanted.
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Question Save stuff to file and read the infomation
In the same way that Word can save an amended version of the document it has open.
Question Save stuff to file and read the infomation
How to save all the GEAR parameters to a file. So next time I can just load the gear data file.
I know how to load gear data file. But I cannot find the place/menu/button to save gear data file.
Any help will be appreciated.
I know how to load gear data file. But I cannot find the place/menu/button to save gear data file.
Any help will be appreciated.
Who is online
Users browsing this forum: No registered users and 1 guest