asmScanWriteFilePlugin = registerFormAddNotification(
function(frm)
if frm.ClassName == 'TfrmDisassemblyscan' then
local t = createTimer()
t.Interval = 100
t.OnTimer = function(t)
if not (frm.PopupMenu1 and frm.ListBox1) then return end
local lb = frm.ListBox1
local mi = createMenuItem(frm.PopupMenu1)
mi.Caption = 'Save to file'
mi.Shortcut = 'ctrl+s'
mi.OnClick = function(mi)
if not dialog.execute() or lb.Items.Count == 0 then return end
local filename = dialog.Filename
local sl = createStringList()
sl.beginUpdate()
for i = 0, lb.Items.Count-1 do
sl.add(lb.Items[i])
end
sl.endUpdate()
sl.saveToFile(filename)
sl.destroy()
end
frm.PopupMenu1.Items.add(mi)
t.destroy()
end
end
end)
Save this as a .lua file in CE's autorun directory. _________________
I don't know where I'm going, but I'll figure it out when I get there.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum