Code: Select all
Function CEButton1Click(sender)
writeInteger("Test.exe+1A234", getProperty(CETrainer_CEdit1,"Text"))
end
form_show(CETrainer)
strings_add(getAutoAttachList(), "Test.exe")
Code: Select all
Function CEButton1Click(sender)
writeInteger("Test.exe+1A234", getProperty(CETrainer_CEdit1,"Text"))
end
form_show(CETrainer)
strings_add(getAutoAttachList(), "Test.exe")
Code: Select all
function readFile(filename)
local lines = {}
if filename == nil then print('File does not exist.') return end
local file = io.open(filename)
for line in file:lines() do
table.insert(lines, line)
end
file:close()
return lines
end
--[[
-- Initialise a table and store the result of the function as its data.
--]]
file_table = readFile('path\\filename.extension')
Code: Select all
function CEButton1Click(sender)
-- Where [1] denotes line number of the file
local value = tonumber(file_table[1])
writeInteger("Test.exe+1A234", value)
end
Users browsing this forum: No registered users