Only send a KeyDown or KeyUp event

Announcements, questions
Post Reply
Sopwith22
Posts: 1
Joined: 16 Aug 2016, 06:10

Only send a KeyDown or KeyUp event

Post by Sopwith22 » 16 Aug 2016, 06:25

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!

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: Only send a KeyDown or KeyUp event

Post by admin » 16 Aug 2016, 07:45

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.
Petr Medek
LUAmacros author

Post Reply