How can I use a Lua DLL call function to send the message EM_REDO
to the User32 dynamic link library, using the SendMessageA
function? I have actually checked the Microsoft site and studied the parameters and any further information required, which I have applied, but I still don't get how to implement this in Lua. I actually think the problem is how to define the message EM_REDO
with a constant value. I believe an attempt to get this working will help most programmers coding in Lua, since user32.dll
in Windows comes with many functions.
Asked
Active
Viewed 1,197 times
1

prapin
- 6,395
- 5
- 26
- 44
-
Have you looked at : http://stackoverflow.com/questions/4162161/best-way-for-lua-script-to-call-a-c-shared-lib?rq=1 – Jane T Oct 24 '12 at 13:38
1 Answers
1
You may want to check winapi module for Lua, both because it may already handle what you need and because you can see how this is all done under the hood. As far as I remember, it supports both SendMessage
and PostMessage
calls.

Paul Kulchenko
- 25,884
- 3
- 38
- 56