Difference between revisions of "Lua:getComment"

From Cheat Engine
Jump to navigation Jump to search
m (Syntax Highlighting.)
 
Line 14: Line 14:
 
|The address to read
 
|The address to read
 
|}
 
|}
 
  
 
== Examples ==
 
== Examples ==
 +
<syntaxhighlight lang="lua" line>
 +
print( getComment( getAddress('Tutorial-x86_64.exe+2C6D') ) );
 +
-- ret=Return
  
 +
print( getComment( getAddress('Tutorial-x86_64.exe+2C5B') ) );
 +
-- %s var
 +
</syntaxhighlight>
  
 
[[File:Lua GetCommentMemView.png]]
 
[[File:Lua GetCommentMemView.png]]
 
 
  print( getComment( getAddress('Tutorial-x86_64.exe+2C6D') ) );
 
  >> ret=Return
 
 
  print( getComment( getAddress('Tutorial-x86_64.exe+2C5B') ) );
 
  >> %s var
 
  
 
{{LuaSeeAlso}}
 
{{LuaSeeAlso}}

Latest revision as of 19:42, 26 June 2026

function getComment(Address) : string

  • Reads the comment text at the given address (only the user comments).

Function Parameters[edit]

Parameter Type Description
Address CEAddressString or Integer The address to read

Examples[edit]

1 print( getComment( getAddress('Tutorial-x86_64.exe+2C6D') ) );
2 -- ret=Return
3 
4 print( getComment( getAddress('Tutorial-x86_64.exe+2C5B') ) );
5 -- %s var

Lua GetCommentMemView.png

Main Pages

Core Lua documentation entry points

Lua
Script Engine

Related Functions[edit]