9.0.5.38134
FrameScript_Execute :0x807B80
Inject and hook Present ,then call FrameScript_Execute , only the first call can work and seems not return.
code like :
Code:
hookPresent(...)
{
...
typedef int64_t (__fastcall* exeScript )(const char*, const char*, int64_t);
exeScript es= reinterpret_cast<exeScript >((uintptr_t)GetModuleHandle(NULL) + 0x807B80);
es("ChatFrame1:AddMessage('ABCDEFG')","test",0); // only the first call (any wow lua function)can work
es("CastSpellByID(123)", "test", 0);
...
}
Did I make mistakes? or Is there any other way to execute wow lua functions?
thanks!