LUA has far more flexible memory scan than AA and LUA is more convenient in error handling. I want to scan for injection point, allocate memory, and register corresponding symbols from LUA.
Hovewer after that I want to write injection code in AA with syntax check and highlighting. Using [ic]autoAssemble(AACode)[/ic] or [ic]luaCall(LuaCode)[/ic] is not an option.
How to exchange data between AA and LUA? Particularly how to transfer 2 or more lua-registered symbols into AA script?
For now I use return value from LUA script:
Code: Select all
[ENABLE]
define(code_allies,0)
{$lua}
if syntaxcheck then return end
local results = AOBScan("4C 8B 91 08 01 00 00 4C 89 55 D0","+X-C+W")
assert(results, "aobscan failed")
return ('define(code_allies,%s)'):format(results[0])
{$asm}
alloc(mem_allies,$1000,code_allies)
...
registersymbol(code_allies)
[DISABLE]
Links on this topic: