Difference between revisions of "Lua:getComment"
Jump to navigation
Jump to search
(Created page with "Category:Lua '''function''' getComment(''Address'') ''':''' string *Reads the comment text at the given address (only the user comments). ===Function Parameters=== {...") |
m (Syntax Highlighting.) |
||
| (One intermediate revision by one other user not shown) | |||
| 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]] | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
{{LuaSeeAlso}} | {{LuaSeeAlso}} | ||
== Related Functions == | == Related Functions == | ||
| − | * [[setComment]] | + | *[[Lua:setComment|setComment]] |
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
