I found a way to delete all user defined symbols from the table using lua. It would be great if there is a standard way to do this.
Code: Select all
function DeleteUserdefinedSymbols()
local mv = getMemoryViewForm()
if mv.frmSymbolhandler == nil then
mv.Symbolhandler1.doClick()
mv.frmSymbolhandler.Close()
end
local items = mv.frmSymbolhandler.ListView1.Items
for i=0,items.Count-1 do
unregisterSymbol(items.Item[0].Caption)
end
end
Notes:
[ic]getMemoryViewForm()[/ic] - read description in celua.txt
[ic]frmSymbolhandler[/ic] - is CE symbol config dialog. To open:
[ic]Ctrl+M -> Ctrl+U[/ic]
OR [ic]getMemoryViewForm().frmSymbolhandler.Show()[/ic]Manual shortcut to delete all user defined symbols: [ic]getMemoryViewForm().frmSymbolhandler.MenuItem1.doClick()[/ic] AND click [ic]Yes[/ic] button.
[ic]getMemoryViewForm().frmSymbolhandler[/ic] is [ic]nil[/ic] until first open. Call [ic]getMemoryViewForm().Symbolhandler1.doClick()[/ic] to initialize.
Relevant links:
-
Clearing All Userdefined Symbols - https://www.cheatengine.org/forum/viewt ... p?t=588191