Difference between revisions of "Lua"

From Cheat Engine
Jump to navigation Jump to search
(Classes)
Line 116: Line 116:
 
== Classes ==
 
== Classes ==
  
* [[Object]] : Most basic class. All classes inherit from this class
+
* [[Addresslist]]: The addresslist class is a container for memory records
 +
* [[Brush]]: The brush class is part of the Canvas object. It's used to fill surfaces
 +
* [[Button]]: The button class is a visual component in the shape of a button.
 +
* [[ButtonControl]]: Common ancestor of several button like objects.
 +
* [[Canvas]]: The canvas class is a graphical class. It allows you do draw lines, pictures, and text on top of other object. Usually used in onPaint events and other graphical events
 +
* [[CheatComponent]]: The cheatcomponent class is the component used in Cheat Engine 5.x trainers
 +
* [[CheckBox]]: The Checkbox is a visual component that lets the user click it and change state between checked, unchecked, and if possible, grayed
 
* [[Component]] : Base class for all components that need owner-owned functionality.
 
* [[Component]] : Base class for all components that need owner-owned functionality.
 
* [[Control]] : Base class for visible controls.
 
* [[Control]] : Base class for visible controls.
* [[Wincontrol]]: Base class for controls which can contain other controls.
+
* [[Collection]]: The Collection class is an abstract class that the ListColumns class implements (And perhaps other classes as well)
 +
* [[CollectionItem]]:  Basic object that is managed by a Collection class
 +
* [[ComboBox]]: The Combobox is like an edit field with a ListBox attached to it
 +
* [[CustomControl]]: Base class for windowed controls which paint themselves
 +
* [[Disassemblerview]]: The visual disassembler used in the memory view window
 +
* [[Edit]]: The Edit class is a visual component that lets the user type in data (Use control_getCaption to get the user input)
 +
* [[FileStream]]: The FileStream class is a Stream class that is linked to an open file on disk
 +
* [[Font]]: Class that defines a font
 +
* [[Form]]: Class that defines a window
 +
* [[FoundList]]: The foundlist is an companion class to MemScan. It opens the current memscan's result file and provides an interface for reading out the addresses
 
* [[GenericHotkey]]: Lets you register hotkeys to Cheat Engine's internal hotkey handler
 
* [[GenericHotkey]]: Lets you register hotkeys to Cheat Engine's internal hotkey handler
* [[MenuItem]]: Holds the menuitems of a Menu, PopupMenu or even another MenuItem
+
* [[Graphic]]: Base class for dealing with Graphic images (Abstract)
* [[Menu]]: Common Class ancestor for the MainMenu and PopupMenu classes
 
* [[MainMenu]]: The menu at the top of a form
 
* [[PopupMenu]]: The menu that shows when rightclicking on an object
 
* [[Strings]]: Abstract class that some text based classes make use of
 
* [[Stringlist]]: Class that holds a list of strings
 
* [[Form]]: Class that defines a window
 
 
* [[GraphicControl]]: Class that supports simple lightweight controls that do not need the ability to accept keyboard input or contain other controls.  
 
* [[GraphicControl]]: Class that supports simple lightweight controls that do not need the ability to accept keyboard input or contain other controls.  
* [[Label]: The Label class is a visual component that lets you display text
+
* [[GroupBox]]: The groupbox class is like a Panel, but then has a header on top
* [[Splitter]]: The Splitter class is a visual component that lets the user re-size neighboring components)
+
* [[Hexadecimalview]]: The visual hexadecimal object used on the memory view window
* [[Panel]]: The Panel class is like a form which can contain visual components.
 
 
* [[Image]]: The Image class is a visual component that lets you show an image
 
* [[Image]]: The Image class is a visual component that lets you show an image
* [[Edit]]: The Edit class is a visual component that lets the user type in data (Use control_getCaption to get the user input)
+
* [[Label]]: The Label class is a visual component that lets you display text
* [[Memo]]: The Memo class is a multiline edit field
 
* [[ButtonControl]]: Common ancestor of several button like objects.
 
* [[Button]]: The button class is a visual component in the shape of a button.
 
* [[CheckBox]]: The Checkbox is a visual component that lets the user click it and change state between checked, unchecked, and if possible, grayed
 
* [[ToggleBox]]: The togglebox is like a button, but can stay down. Use with the checkbox methods
 
* [[GroupBox]]: The groupbox class is like a Panel, but then has a header on top
 
* [[RadioGroup]]: The radiogroup is like a GroupBox but autopopulated using the Items(Strings object)
 
 
* [[ListBox]]: The listbox class is a visual component with a list of selectable strings
 
* [[ListBox]]: The listbox class is a visual component with a list of selectable strings
* [[ComboBox]]: The Combobox is like an edit field with a ListBox attached to it
 
* [[ProgressBar]]: The progressbar class is a visual representation for a bar that can show the current progress on something
 
* [[TrackBar]]: The trackbar class is a slider you can drag arround and read/set the state
 
* [[CollectionItem]]:  Basic object that is managed by a Collection class
 
 
* [[ListColumn]]: The listcolumn class is an implemented CollectionItem class which is used by the ListColumns class of the listview class
 
* [[ListColumn]]: The listcolumn class is an implemented CollectionItem class which is used by the ListColumns class of the listview class
* [[Collection]]: The Collection class is an abstract class that the ListColumns class implements (And perhaps other classes as well)
 
 
* [[ListColumns]]: The ListColumns class contains the Column class objects of a ListView object
 
* [[ListColumns]]: The ListColumns class contains the Column class objects of a ListView object
 
* [[ListItem]]: The ListItem class object is an entry in a ListView
 
* [[ListItem]]: The ListItem class object is an entry in a ListView
 
* [[ListItems]]: The listItems class is a container for the ListItem class objects of a Listview
 
* [[ListItems]]: The listItems class is a container for the ListItem class objects of a Listview
 
* [[Listview]]: The listview class lets you have a listbox like component with resizable columns
 
* [[Listview]]: The listview class lets you have a listbox like component with resizable columns
* [[Timer]]: The timer class is an non visual component that when active triggers an onTimer event every few milliseconds, base don the given interval
+
* [[MainMenu]]: The menu at the top of a form
* [[CustomControl]]: Base class for windowed controls which paint themselves
+
* [[Memo]]: The Memo class is a multiline edit field
* [[Canvas]]: The canvas class is a graphical class. It allows you do draw lines, pictures, and text on top of other object. Usually used in onPaint events and other graphical events
+
* [[MemScan]]: The memscan class is the memory scanner of Cheat engine
 +
* [[Menu]]: Common Class ancestor for the MainMenu and PopupMenu classes
 +
* [[MenuItem]]: Holds the menuitems of a Menu, PopupMenu or even another MenuItem
 +
* [[MemoryRecord]]: The Memoryrecord class object describes a Cheat Table's Cheat Entry.
 +
* [[MemoryRecordHotkey]]: The memoryRecordHotkey class object is part of a MemoryRecord class. It's used as an interface to each individual hotkey inside a Cheat Table
 +
* [[MemoryStream]]: The memorystream class is a Stream class that is stored completely in memory. Because it's a stream there are multiple functions that can work with it
 +
* [[Memoryview]]: The memoryview class is the Memory view window of Cheat Engine. Use this as a basis to access the objects inside this window
 +
* [[Object]] : Most basic class. All classes inherit from this class
 +
* [[Panel]]: The Panel class is like a form which can contain visual components.
 
* [[Pen]]: The Pen class is part of the Canvas object. It's used to draw lines
 
* [[Pen]]: The Pen class is part of the Canvas object. It's used to draw lines
* [[Brush]]: The brush class is part of the Canvas object. It's used to fill surfaces
 
* [[Font]]: Class that defines a font
 
* [[Graphic]]: Base class for dealing with Graphic images (Abstract)
 
 
* [[Picture]]: Container for the Graphic class
 
* [[Picture]]: Container for the Graphic class
* [[OpenDialog]]: The OpenDialog class is used to let the user select a file to open
+
* [[PopupMenu]]: The menu that shows when rightclicking on an object
 +
* [[ProgressBar]]: The progressbar class is a visual representation for a bar that can show the current progress on something
 +
* [[RadioGroup]]: The radiogroup is like a GroupBox but autopopulated using the Items(Strings object)
 
* [[SaveDialog]]: The SaveDialog class is a copy of the OpenDialog class but is used to select a file for saving
 
* [[SaveDialog]]: The SaveDialog class is a copy of the OpenDialog class but is used to select a file for saving
* [[MemoryStream]]: The memorystream class is a Stream class that is stored completely in memory. Because it's a stream there are multiple functions that can work with it
+
* [[Splitter]]: The Splitter class is a visual component that lets the user re-size neighboring components)
* [[FileStream]]: The FileStream class is a Stream class that is linked to an open file on disk
+
* [[Stringlist]]: Class that holds a list of strings
 +
* [[Strings]]: Abstract class that some text based classes make use of
 
* [[TableFile]]: Tablefiles are files stored into a Cheat Table. You can access the data of such a file using this class
 
* [[TableFile]]: Tablefiles are files stored into a Cheat Table. You can access the data of such a file using this class
* [[CheatComponent]]: The cheatcomponent class is the component used in Cheat Engine 5.x trainers
+
* [[Timer]]: The timer class is an non visual component that when active triggers an onTimer event every few milliseconds, base don the given interval
* [[MemoryRecordHotkey]]: The memoryRecordHotkey class object is part of a MemoryRecord class. It's used as an interface to each individual hotkey inside a Cheat Table
+
* [[ToggleBox]]: The togglebox is like a button, but can stay down. Use with the checkbox methods
* [[MemoryRecord]]: The Memoryrecord class object describes a Cheat Table's Cheat Entry.
+
* [[TrackBar]]: The trackbar class is a slider you can drag arround and read/set the state
* [[Addresslist]]: The addresslist class is a container for memory records
+
* [[Wincontrol]]: Base class for controls which can contain other controls.
* [[Memoryview]]: The memoryview class is the Memory view window of Cheat Engine. Use this as a basis to access the objects inside this window
 
* [[Disassemblerview]]: The visual disassembler used in the memory view window
 
* [[Hexadecimalview]]: The visual hexadecimal object used on the memory view window
 
* [[MemScan]]: The memscan class is the memory scanner of Cheat engine
 
* [[FoundList]]: The foundlist is an companion class to MemScan. It opens the current memscan's result file and provides an interface for reading out the addresses
 
 
 
 
 
 
 
  
 
== Undefined Class Property Functions ==
 
== Undefined Class Property Functions ==

Revision as of 15:41, 21 February 2012

Cheat Engine comes with an extensive set of Lua functions you can use inside cheattables, trainers and standalone scripts.


Functions


Besides these functions Cheat Engine also implements some classes


Classes

  • Addresslist: The addresslist class is a container for memory records
  • Brush: The brush class is part of the Canvas object. It's used to fill surfaces
  • Button: The button class is a visual component in the shape of a button.
  • ButtonControl: Common ancestor of several button like objects.
  • Canvas: The canvas class is a graphical class. It allows you do draw lines, pictures, and text on top of other object. Usually used in onPaint events and other graphical events
  • CheatComponent: The cheatcomponent class is the component used in Cheat Engine 5.x trainers
  • CheckBox: The Checkbox is a visual component that lets the user click it and change state between checked, unchecked, and if possible, grayed
  • Component : Base class for all components that need owner-owned functionality.
  • Control : Base class for visible controls.
  • Collection: The Collection class is an abstract class that the ListColumns class implements (And perhaps other classes as well)
  • CollectionItem: Basic object that is managed by a Collection class
  • ComboBox: The Combobox is like an edit field with a ListBox attached to it
  • CustomControl: Base class for windowed controls which paint themselves
  • Disassemblerview: The visual disassembler used in the memory view window
  • Edit: The Edit class is a visual component that lets the user type in data (Use control_getCaption to get the user input)
  • FileStream: The FileStream class is a Stream class that is linked to an open file on disk
  • Font: Class that defines a font
  • Form: Class that defines a window
  • FoundList: The foundlist is an companion class to MemScan. It opens the current memscan's result file and provides an interface for reading out the addresses
  • GenericHotkey: Lets you register hotkeys to Cheat Engine's internal hotkey handler
  • Graphic: Base class for dealing with Graphic images (Abstract)
  • GraphicControl: Class that supports simple lightweight controls that do not need the ability to accept keyboard input or contain other controls.
  • GroupBox: The groupbox class is like a Panel, but then has a header on top
  • Hexadecimalview: The visual hexadecimal object used on the memory view window
  • Image: The Image class is a visual component that lets you show an image
  • Label: The Label class is a visual component that lets you display text
  • ListBox: The listbox class is a visual component with a list of selectable strings
  • ListColumn: The listcolumn class is an implemented CollectionItem class which is used by the ListColumns class of the listview class
  • ListColumns: The ListColumns class contains the Column class objects of a ListView object
  • ListItem: The ListItem class object is an entry in a ListView
  • ListItems: The listItems class is a container for the ListItem class objects of a Listview
  • Listview: The listview class lets you have a listbox like component with resizable columns
  • MainMenu: The menu at the top of a form
  • Memo: The Memo class is a multiline edit field
  • MemScan: The memscan class is the memory scanner of Cheat engine
  • Menu: Common Class ancestor for the MainMenu and PopupMenu classes
  • MenuItem: Holds the menuitems of a Menu, PopupMenu or even another MenuItem
  • MemoryRecord: The Memoryrecord class object describes a Cheat Table's Cheat Entry.
  • MemoryRecordHotkey: The memoryRecordHotkey class object is part of a MemoryRecord class. It's used as an interface to each individual hotkey inside a Cheat Table
  • MemoryStream: The memorystream class is a Stream class that is stored completely in memory. Because it's a stream there are multiple functions that can work with it
  • Memoryview: The memoryview class is the Memory view window of Cheat Engine. Use this as a basis to access the objects inside this window
  • Object : Most basic class. All classes inherit from this class
  • Panel: The Panel class is like a form which can contain visual components.
  • Pen: The Pen class is part of the Canvas object. It's used to draw lines
  • Picture: Container for the Graphic class
  • PopupMenu: The menu that shows when rightclicking on an object
  • ProgressBar: The progressbar class is a visual representation for a bar that can show the current progress on something
  • RadioGroup: The radiogroup is like a GroupBox but autopopulated using the Items(Strings object)
  • SaveDialog: The SaveDialog class is a copy of the OpenDialog class but is used to select a file for saving
  • Splitter: The Splitter class is a visual component that lets the user re-size neighboring components)
  • Stringlist: Class that holds a list of strings
  • Strings: Abstract class that some text based classes make use of
  • TableFile: Tablefiles are files stored into a Cheat Table. You can access the data of such a file using this class
  • Timer: The timer class is an non visual component that when active triggers an onTimer event every few milliseconds, base don the given interval
  • ToggleBox: The togglebox is like a button, but can stay down. Use with the checkbox methods
  • TrackBar: The trackbar class is a slider you can drag arround and read/set the state
  • Wincontrol: Base class for controls which can contain other controls.

Undefined Class Property Functions

Not all properties of all classes have been explicitly exposed to lua, but if you know the name of a property of a specific class you can still access them (assuming they are declared as published in the pascal class declaration)

See:

  • getPropertyList : Returns a StringList object containing all the published properties of the specified class
  • setProperty : Sets the value of a published property of a class (Won't work for method properties)
  • getProperty : Gets the value of a published property of a class (Won't work for method properties)