Lua:Class:MemoryView

From Cheat Engine
Jump to navigation Jump to search

{} Class

class Memoryview : Form

The Memoryview class represents a memory viewer window.

A new memory viewer window can be created with createMemoryView. This created window will not receive debug events. To access the main memory viewer window, use getMemoryViewForm.

Inheritance[edit]

Class Inherits From Description
Memoryview Form Represents a memory viewer window.
Form ScrollingWinControl Base class for forms and windows.
ScrollingWinControl CustomControl Base class for controls with scrolling support.
CustomControl WinControl Base class for custom windowed controls.
WinControl Control Base class for controls that can receive focus and contain child controls.
Control Component Base class for visible GUI controls.
Component Object Base class for components.
Object None Base class for Lua-exposed objects.

Creation[edit]

<> Lua API Reference

function createMemoryView() : Memoryview

Creates a new memory viewer window.

The created memory viewer window will not receive debug events. Use getMemoryViewForm to get the main memory viewer window.

Function Parameters[edit]

This function has no parameters.

Returns[edit]

MemoryView — The created memory viewer window.

Properties[edit]

Property Type Description
DisassemblerView DisassemblerView The disassembler view object of this memory viewer.
HexadecimalView HexadecimalView The hexadecimal view object of this memory viewer.

Methods[edit]

This class does not define additional methods.

Inherited methods are available through Form and its parent classes.

Examples[edit]

Create a new Memoryview window[edit]

1 local memoryView = createMemoryView()
2 
3 memoryView.Caption = "Custom Memory Viewer"
4 memoryView.show()

Get the main Memoryview window[edit]

1 local memoryView = getMemoryViewForm()
2 
3 print(memoryView.ClassName)

Access the DisassemblerView[edit]

1 local memoryView = getMemoryViewForm()
2 
3 local disassemblerView = memoryView.DisassemblerView
4 
5 print(disassemblerView.ClassName)

Access the HexadecimalView[edit]

1 local memoryView = getMemoryViewForm()
2 
3 local hexadecimalView = memoryView.HexadecimalView
4 
5 print(hexadecimalView.ClassName)

Create a separate Memoryview and access its views[edit]

 1 local memoryView = createMemoryView()
 2 
 3 memoryView.Caption = "Secondary Memory Viewer"
 4 
 5 local disassemblerView = memoryView.DisassemblerView
 6 local hexadecimalView = memoryView.HexadecimalView
 7 
 8 print(disassemblerView.ClassName)
 9 print(hexadecimalView.ClassName)
10 
11 memoryView.show()

Use the main Memoryview safely[edit]

1 local memoryView = getMemoryViewForm()
2 
3 if memoryView ~= nil then
4   print("Main memory viewer: " .. tostring(memoryView.Caption))
5 end

Close a created Memoryview[edit]

1 local memoryView = createMemoryView()
2 
3 memoryView.Caption = "Temporary Memory Viewer"
4 memoryView.show()
5 
6 -- Later:
7 memoryView.destroy()

Main Pages

Core Lua documentation entry points

Lua
Script Engine

Form Related Classes