user1421716
user1421716

Reputation:

User32.dll function call with Lua

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.

Upvotes: 1

Views: 1316

Answers (1)

Paul Kulchenko
Paul Kulchenko

Reputation: 26754

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.

Upvotes: 1

Related Questions