Well, just tried it and it works :-) Thanks for the initial push to FrameScript_SignalEvent at this time again.
What I did tot try it was to create a crappy addon with source:
Code:
local f = CreateFrame("Frame");
f:RegisterEvent("CHAT_MSG_SAY");
local handle = function (self, event, ...)
f:RegisterEvent("MyEvent");
print(event);
end
f:SetScript("OnEvent", handle);
and afterwards, do the following
- expose another function to lua which does
Code:
Offsets::FrameScript_SignalEvent(665, "%d", 42);
- inject DLL
- call
Code:
/script print("EVENT REGISTRATION:", RegisterNewEvent())
- say something in the chat to register the frame to the new event
- raise the event using
Code:
/script FunctionFromFirstPointInList()
it worked nice :-) thanks again for help, and hoping that this thread will help someone who also wants to raise lua events from C++