Lua:Class:Addresslist

From Cheat Engine
Revision as of 19:08, 18 March 2019 by Dark Byte (talk | contribs) (Reverted edits by This content is not available (Talk) to last revision by TheyCallMeTim13)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Addresslist class: (Inheritance: Panel->WinControl->Control->Component->Object)

Class for manipulating the Cheat Engine form's address list.

Properties

Count : integer
The number of records in the table.
SelCount : integer
The number of records that are selected.
SelectedRecord : MemoryRecord
The main selected record.
MemoryRecord[index] : MemoryRecord
Array to access the individual memory records.
[index] : MemoryRecord
Default accessor.

Methods

getCount() : integer
Returns the number of memory records in the address list.
getMemoryRecord(index) : MemoryRecord
returns a MemoryRecord object based on it's index.
getMemoryRecordByDescription(description) : MemoryRecord
returns a MemoryRecord object based on it's description.
getMemoryRecordByID(ID) : MemoryRecord
returns a MemoryRecord object based on it's ID.
createMemoryRecord() : MemoryRecord
creates an generic cheat table entry and add it to the list
getSelectedRecords() : MemoryRecord
Returns a table containing all the selected records
doDescriptionChange()
Will show the GUI window to change the description of the selected entry
doAddressChange()
Will show the GUI window to change the address of the selected entry
doTypeChange()
Will show the GUI window to change the type of the selected entries
doValueChange()
Will show the GUI window to change the value of the selected entries
getSelectedRecord() : MemoryRecord
Gets the main selected memory record.
setSelectedRecord(memrec)
Sets the currently selected memory record. This will unselect all other entries.

Examples

local addressList = getAddressList()
if addressList.Count >= 1 then
  local mrHealth = addressList.getMemoryRecordByDescription('Health')
end
local mrMana = addressList.createMemoryRecord()

See also

Related Functions

Related Classes