Difference between revisions of "Lua:getMemoryViewForm"

From Cheat Engine
Jump to navigation Jump to search
(Added example setting hex view display type)
(cleaner code)
Line 11: Line 11:
 
  -- see MemoryBrowserFormUnit in CE source
 
  -- see MemoryBrowserFormUnit in CE source
 
  local frm = getMemoryViewForm()
 
  local frm = getMemoryViewForm()
  local hv = frm.ComponentByName['HexadecimalView']
+
  local hv = frm.HexadecimalView
 
  --
 
  --
 
  -- see hexviewunit in CE source
 
  -- see hexviewunit in CE source

Revision as of 23:48, 19 June 2018

function getMemoryViewForm() : Form

Returns the main memory view Form class object which can be accessed using the Form class methods and the methods of the classes it inherits from. There can be multiple memory views, but this will only find the original/base.

Function Parameters

<none>

Examples

-- see MemoryBrowserFormUnit in CE source
local frm = getMemoryViewForm()
local hv = frm.HexadecimalView
--
-- see hexviewunit in CE source
--  TDisplayType = (dtByte, dtByteDec, dtWord, dtWordDec, dtDword, dtDwordDec, dtQword, dtQwordDec, dtSingle, dtDouble);
hv.address = 0x540000
hv.DisplayType = 4 -- dtDword


See also

Related Functions

Related Classes