Page 1 of 1

Only send a KeyDown or KeyUp event

Posted: 16 Aug 2016, 06:25
by Sopwith22
Hi!

Luamacros has been a really great tool so far, but I'm wondering if it's possible to only send a KeyDown or KeyUp event, such as the functions TKeySequence.SendKeyDown and TKeySequence.SendKeyUp do in the Pascal source. Would it be possible to access these functions through the Lua editor? I've been having a bit of trouble, as the current implementation of lmc_send_keys seems to depress the key, and then release it immediately after - the application I'm working on needs to preserve the exact key events while only remapping the keys themselves.

Would anyone be able to help with this? It would be amazing if this could be done.

Thanks!

Re: Only send a KeyDown or KeyUp event

Posted: 16 Aug 2016, 07:45
by admin
Of course this is possible.
Probably whole lmc_send_keys should be rewritten to use new windows API (as discussed here) and in the same time it can be extended to support down & up only.
Anyone? :-)
Ok, can add it to my todo list, but I haven't touched LuaMacros for quite a long time because it does what I need so my motivation is low.