Difference between revisions of "Lua:Class:Addresslist"

From Cheat Engine
Jump to navigation Jump to search
m (Reverted edits by This content is not available (Talk) to last revision by TheyCallMeTim13)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''AddressList class''': (Inheritance: [[Panel]]->[[WinControl]]->[[Control]]->[[Component]]->[[Object]])
+
[[Category:Lua]]
 +
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.
  
The Addresslist class can be used to access information regarding the Cheat Engine table. It is commonly combined with [[MemoryRecord]].
+
== Properties ==
 +
; Count : integer
 +
: The number of records in the table.
  
 +
; SelCount : integer
 +
: The number of records that are selected.
  
===Properties===
+
; SelectedRecord : [[Lua:Class:MemoryRecord|MemoryRecord]]
  Count: Integer - The number of records in the table
+
: The main selected record.
  SelCount: integer- The number of records that are selected
 
  SelectedRecord: MemoryRecord - The main selected record
 
  MemoryRecord[]: MemoryRecord - Array to access the individial memory records
 
  [] = MemoryRecord - Default accessor
 
  
===Methods===
+
; MemoryRecord[''index''] : [[Lua:Class:MemoryRecord|MemoryRecord]]
  getCount()
+
: Array to access the individual memory records.
  getMemoryRecord(index)
 
  getMemoryRecordByDescription(description): returns a MemoryRecord object
 
  getMemoryRecordByID(ID)
 
  createMemoryRecord() : creates an generic cheat table entry and add it to the list
 
  
  getSelectedRecords(): Returns a table containing all the selected records
+
; [''index''] : [[Lua:Class:MemoryRecord|MemoryRecord]]
 +
: Default accessor.
  
  doDescriptionChange() : Will show the gui window to change the description of the selected entry
+
== Methods ==
  doAddressChange() : Will show the gui window to change the address of the selected entry
+
; getCount() : integer
  doTypeChange() : Will show the gui window to change the type of the selected entries
+
: Returns the number of memory records in the address list.
  doValueChange() : Will show the gui window to change the value of the selected entries
 
  
  getSelectedRecord() : Gets the main selected memoryrecord
+
; getMemoryRecord(''index'') : [[Lua:Class:MemoryRecord|MemoryRecord]]
  setSelectedRecord(memrec) : Sets the currently selected memoryrecord. This will unselect all other entries
+
: returns a [[Lua:Class:MemoryRecord|MemoryRecord]] object based on it's index.
  
----
+
; getMemoryRecordByDescription(''description'') : [[Lua:Class:MemoryRecord|MemoryRecord]]
 +
: returns a [[Lua:Class:MemoryRecord|MemoryRecord]] object based on it's description.
  
* [[Lua|Lua Functions and Classes]]
+
; getMemoryRecordByID(''ID'') : [[Lua:Class:MemoryRecord|MemoryRecord]]
 +
: returns a [[Lua:Class:MemoryRecord|MemoryRecord]] object based on it's ID.
 +
 
 +
; createMemoryRecord() : [[Lua:Class:MemoryRecord|MemoryRecord]]
 +
: creates an generic cheat table entry and add it to the list
 +
 
 +
; getSelectedRecords() : [[Lua:Class:MemoryRecord|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() : [[Lua:Class:MemoryRecord|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()
 +
 
 +
{{LuaSeeAlso}}
 +
 
 +
=== Related Functions ===
 +
* [[Lua:getMainForm|getMainForm]]
 +
* [[Lua:getAddressList|getAddressList]]
 +
 
 +
=== Related Classes ===
 +
* [[Lua:Class:MemoryRecord|MemoryRecord]]

Latest revision as of 19:08, 18 March 2019

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

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

Properties[edit]

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[edit]

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[edit]

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

See also[edit]

Related Functions[edit]

Related Classes[edit]