Difference between revisions of "Lua:getMemoryViewForm"

From Cheat Engine
Jump to navigation Jump to search
(→‎Related Classes)
m (Syntax Highlighting.)
 
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
[[Category:Lua]]
 
[[Category:Lua]]
−
'''function''' getMemoryViewForm() ''':''' [[Form]]
+
{{CodeBox|'''function''' getMemoryViewForm() ''':''' Form}}
  
−
Returns the main memory view [[Form]] class object which can be accessed using the [[Form]] class methods
+
Returns the main Memory View form object.
−
and the methods of the classes it inherits from. There can be multiple memory views,
 
−
but this will only find the original/base.
 
  
−
{{LuaFunctionParametersNone}}
+
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.
  
−
== Examples ==
+
===Function Parameters===
−
local frm = getMemoryViewForm()
+
This function has no parameters.
 +
 
 +
===Returns===
 +
Form — The main Memory View form object.
 +
 
 +
===Examples===
 +
<syntaxhighlight lang="lua" line>
 +
local memoryView = getMemoryViewForm()
 +
 
 +
if memoryView ~= nil then
 +
  memoryView.show()
 +
  memoryView.bringToFront()
 +
end
 +
</syntaxhighlight>
 +
 
 +
<syntaxhighlight lang="lua" line>
 +
local memoryView = getMemoryViewForm()
 +
 
 +
if memoryView ~= nil then
 +
  print("Memory View caption: " .. tostring(memoryView.Caption))
 +
  print("Visible: " .. tostring(memoryView.Visible))
 +
end
 +
</syntaxhighlight>
 +
 
 +
<syntaxhighlight lang="lua" line>
 +
local memoryView = getMemoryViewForm()
 +
 
 +
if memoryView ~= nil and memoryView.isForegroundWindow() then
 +
  print("The main Memory View is currently focused")
 +
end
 +
</syntaxhighlight>
  
 
{{LuaSeeAlso}}
 
{{LuaSeeAlso}}
  
−
=== Related Functions ===
+
{{Forms}}
−
* [[getForm]]
 
−
* [[getFormCount]]
 
−
* [[getMainForm]]
 
−
* [[getSettingsForm]]
 
−
* [[getLuaEngine]]
 
−
* [[registerFormAddNotification]]
 
−
 
 
−
=== Related Classes ===
 
−
* [[Lua:Class:Form|Form]]
 
−
* [[Lua:Class:Component|Component]]
 
−
* [[Lua:Class:Control|Control]]
 
−
* [[Lua:Class:WinControl|WinControl]]
 
−
* [[Lua:Class:Application|Application]]
 
−
* [[Lua:Class:Object|Object]]
 

Latest revision as of 19:52, 26 June 2026

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

This function has no parameters.

Returns[edit]

Form — The main Memory View form object.

Examples[edit]

1 local memoryView = getMemoryViewForm()
2 
3 if memoryView ~= nil then
4   memoryView.show()
5   memoryView.bringToFront()
6 end
1 local memoryView = getMemoryViewForm()
2 
3 if memoryView ~= nil then
4   print("Memory View caption: " .. tostring(memoryView.Caption))
5   print("Visible: " .. tostring(memoryView.Visible))
6 end
1 local memoryView = getMemoryViewForm()
2 
3 if memoryView ~= nil and memoryView.isForegroundWindow() then
4   print("The main Memory View is currently focused")
5 end

Main Pages

Core Lua documentation entry points

◆ Lua
◆ Script Engine

Form Related Classes