Unregistering userdefined symbols

A forum dedicated to use and support LUA for Cheat Engine.


Post Reply
User avatar
mece
Table Maker
Table Maker
Apprentice Hacker
Apprentice Hacker
Posts: 61
Joined: Sat Jul 23, 2022 9:21 am
Answers: 0
x 68
Contact:

Unregistering userdefined symbols

Post by mece »

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:


Post Reply