Hi,
A quick few things first. Use notepad++ to edit lua files, make a backup of your export lua file and set your config.lua in .\Eagle Dynamics\DCS A-10C\Config\Export to true.
First export file will return a list of switch values to a txt file (set to save in ./Temp/ElectricalPowerPanel.txt) http://www.multiupload.com/BA9MRH53MB
Copy this to your .\Config\Export folder. Run an instant mission or training. Once you're ingame, pause and alt_tab to open the txt file. You shold have a long list looking like 0,0,0,1,0,0.10000000, etc.
In the export.lua file you should see a list of lines like this
local batteryPowerswitch = MainPanel:get_argument_value(246)
The number on the line is the arg value for a switch. These can be found in a few different files, mostly clickabledata.lua and mainpanel_init.lua
The line with the filename:write(string.format(value),(","))
is where the lua file writes the values to the txt file.
Second export file is a useful version of the export lua that doesn't wipe the txt file after each new screen. It writes the state of the switches constantly which makes it good for seeing what values switches return and how the switches change values.
http://www.multiupload.com/BA9MRH53MB
This is a spreadsheet that lists which switches are placed on the line saved. I use it for working out array positions for touch ir.
http://www.multiupload.com/BA9MRH53MB
Sorry if I haven't explained this too well, but it's easier to see in action than type up.