Unfortunately, as it stands, the Autoit splitter code:
$aArray = StringRegExp($sData, '((?<=").*(?=")|id=\d+)', 3) ; Split into array
now recognises both the serial number & "id" (i.e. the text itself) as array elements so I still have some work to do - can't imagine it'll be too difficult to fix though.
One way to identify the difference would be that serial always ends with something like ]={
while the ID ends with ]=digits
You could also modify save_list to output an additional file in some simpler format, something like
fh=io.open('autoit_list.txt','wb')
for k,v in pairs(t) do
fh:write(string.format('%d=%s\n',v.id,k))
end
fh:close()
This should give you lines of
id=serial
(above is off top top of my head, untested)
I didn't really intend the saved list to be used externally, I used serialize because it makes it easy to save and load from Lua, and is reasonably human readable.