Lua:getMemoryViewForm

From Cheat Engine
Revision as of 21:06, 24 June 2026 by Leunsel (talk | contribs)
Jump to navigation Jump to search

<> Lua API Reference

function getMemoryViewForm() : Form

Returns the main Memory View form object.

There can be multiple Memory View windows, but this function only returns the original/base Memory View form. The returned object can be accessed using the Form class methods and the methods of the classes it inherits from.

Function Parameters

This function has no parameters.

Returns

Form — The main Memory View form object.

Examples

local memoryView = getMemoryViewForm()

if memoryView ~= nil then
  memoryView.show()
  memoryView.bringToFront()
end
local memoryView = getMemoryViewForm()

if memoryView ~= nil then
  print("Memory View caption: " .. tostring(memoryView.Caption))
  print("Visible: " .. tostring(memoryView.Visible))
end
local memoryView = getMemoryViewForm()

if memoryView ~= nil and memoryView.isForegroundWindow() then
  print("The main Memory View is currently focused")
end

Notes

  • This function returns the original/base Memory View form.
  • It does not return additional Memory View windows that may have been opened.
  • The returned object can be used like a Form object.

Main Pages

Core Lua documentation entry points

Lua
Script Engine

Form Related Classes