Difference between revisions of "Lua:Class:Addresslist"

From Cheat Engine
Jump to navigation Jump to search
(Related Classes)
Line 1: Line 1:
 
[[Category:Lua]]
 
[[Category:Lua]]
Addresslist '''class''': ('''Inheritance''': ''[[Panel]]''->''[[WinControl]]''->''[[Control]]''->''[[Component]]''->''[[Object]]'')
+
Addresslist '''class''': ('''Inheritance''': ''[[Lua:Class:Panel|Panel]]''->''[[Lua:Class:WinControl|WinControl]]''->''[[Lua:Class:Control|Control]]''->''[[Lua:Class:Component|Component]]''->''[[Lua:Class:Object|Object]]'')
  
 
Class for manipulating the Cheat Engine form's address list.
 
Class for manipulating the Cheat Engine form's address list.
Line 11: Line 11:
 
: The number of records that are selected.
 
: The number of records that are selected.
  
; SelectedRecord : [[MemoryRecord]]
+
; SelectedRecord : [[Lua:Class:MemoryRecord|MemoryRecord]]
 
: The main selected record.
 
: The main selected record.
  
; MemoryRecord[''index''] : [[MemoryRecord]]
+
; MemoryRecord[''index''] : [[Lua:Class:MemoryRecord|MemoryRecord]]
 
: Array to access the individual memory records.
 
: Array to access the individual memory records.
  
; [''index''] : [[MemoryRecord]]
+
; [''index''] : [[Lua:Class:MemoryRecord|MemoryRecord]]
 
: Default accessor.
 
: Default accessor.
  
Line 24: Line 24:
 
: Returns the number of memory records in the address list.
 
: Returns the number of memory records in the address list.
  
; getMemoryRecord(''index'') : [[MemoryRecord]]
+
; getMemoryRecord(''index'') : [[Lua:Class:MemoryRecord|MemoryRecord]]
: returns a [[MemoryRecord]] object based on it's index.
+
: returns a [[Lua:Class:MemoryRecord|MemoryRecord]] object based on it's index.
  
; getMemoryRecordByDescription(''description'') : [[MemoryRecord]]
+
; getMemoryRecordByDescription(''description'') : [[Lua:Class:MemoryRecord|MemoryRecord]]
: returns a [[MemoryRecord]] object based on it's description.
+
: returns a [[Lua:Class:MemoryRecord|MemoryRecord]] object based on it's description.
  
; getMemoryRecordByID(''ID'') : [[MemoryRecord]]
+
; getMemoryRecordByID(''ID'') : [[Lua:Class:MemoryRecord|MemoryRecord]]
: returns a [[MemoryRecord]] object based on it's ID.
+
: returns a [[Lua:Class:MemoryRecord|MemoryRecord]] object based on it's ID.
  
; createMemoryRecord() : [[MemoryRecord]]
+
; createMemoryRecord() : [[Lua:Class:MemoryRecord|MemoryRecord]]
 
: creates an generic cheat table entry and add it to the list
 
: creates an generic cheat table entry and add it to the list
  
; getSelectedRecords() : [[MemoryRecord]]
+
; getSelectedRecords() : [[Lua:Class:MemoryRecord|MemoryRecord]]
 
: Returns a table containing all the selected records
 
: Returns a table containing all the selected records
  
Line 51: Line 51:
 
: Will show the GUI window to change the value of the selected entries
 
: Will show the GUI window to change the value of the selected entries
  
; getSelectedRecord() : [[MemoryRecord]]
+
; getSelectedRecord() : [[Lua:Class:MemoryRecord|MemoryRecord]]
 
: Gets the main selected memory record.
 
: Gets the main selected memory record.
  

Revision as of 01:40, 25 January 2018

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