Difference between revisions of "Lua:getAddress"
Jump to navigation
Jump to search
m (moved getAddress to Lua:getAddress) |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Category:Lua]] | [[Category:Lua]] | ||
− | '''function''' getAddress(''AddressString'') ''':''' integer | + | '''function''' getAddress(''AddressString'', ''local'' OPTIONAL) ''':''' integer |
− | Passes the given string to Cheat Engine's symbol handler and returns the corresponding address as an integer | + | Passes the given string to Cheat Engine's symbol handler and returns the corresponding address as an integer. Can be a module name or an export. Set ''local'' to true if you wish to query the symbol table of the CE process. |
If errorOnLookupFailure is set to true (the default value), if you look up a symbol that does not exist, it will throw an error. With errorOnLookupFailure set to false, it will return 0. | If errorOnLookupFailure is set to true (the default value), if you look up a symbol that does not exist, it will throw an error. With errorOnLookupFailure set to false, it will return 0. | ||
Line 15: | Line 15: | ||
|AddressString | |AddressString | ||
|[[CEAddressString]] | |[[CEAddressString]] | ||
− | |The | + | |The AddressString to convert to an integer |
+ | |- | ||
+ | |local | ||
+ | |Boolean | ||
+ | |Set to true if you wish to query the symbol table of the CE process | ||
|} | |} | ||
Line 22: | Line 26: | ||
=== Related Functions === | === Related Functions === | ||
− | * [[getNameFromAddress]] | + | * [[Lua:getAddressSafe|getAddressSafe]] |
− | * [[getCommonModuleList]] | + | * [[Lua:getNameFromAddress|getNameFromAddress]] |
− | * [[inModule]] | + | * [[Lua:getCommonModuleList|getCommonModuleList]] |
− | * [[inSystemModule]] | + | * [[Lua:inModule|inModule]] |
− | * [[targetIs64Bit]] | + | * [[Lua:inSystemModule|inSystemModule]] |
− | * [[enumModules]] | + | * [[Lua:targetIs64Bit|targetIs64Bit]] |
+ | * [[Lua:enumModules|enumModules]] |
Latest revision as of 03:38, 18 April 2018
function getAddress(AddressString, local OPTIONAL) : integer
Passes the given string to Cheat Engine's symbol handler and returns the corresponding address as an integer. Can be a module name or an export. Set local to true if you wish to query the symbol table of the CE process.
If errorOnLookupFailure is set to true (the default value), if you look up a symbol that does not exist, it will throw an error. With errorOnLookupFailure set to false, it will return 0.
Function Parameters[edit]
Parameter | Type | Description |
---|---|---|
AddressString | CEAddressString | The AddressString to convert to an integer |
local | Boolean | Set to true if you wish to query the symbol table of the CE process |