Pass keypress without any manipulation

Announcements, questions
Post Reply
marce
Posts: 2
Joined: 07 Jun 2018, 21:55

Pass keypress without any manipulation

Post by marce » 07 Jun 2018, 22:03

Hey,

is there a way to pass the keys as is?

I found this method: lmc_send_input(button, 0, 0) but it behaves weird like backspace, shift combinations and so on.

It should feel like there is no luamacro between input and output.

I scanned roughly the forum topics, but didnt find a matching topic.

Hope you can help.

-marce

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

Re: Pass keypress without any manipulation

Post by admin » 08 Jun 2018, 07:58

There is no such available command in lua.
What you can do is not define callback for whole device but only for specific keys/buttons. Then othe keys are not affected.
You can define such specific callback function using:

lmc_set_handler(name_of_device,key_number,direction_0_is_up_and_1_is_down,callback_function)
Petr Medek
LUAmacros author

marce
Posts: 2
Joined: 07 Jun 2018, 21:55

Re: Pass keypress without any manipulation

Post by marce » 08 Jun 2018, 10:22

Thanks for the answer.

I found that option too, but the problem is that i cant stop keypresses. For example: i type on keyboard one and if i change to keyboard two, the first keypress should be delayed and a macro should be executed.

If i limit the handler to specific keys, i cant do that.

Thanks anyways :D You support this forum very well.

But i think i have to search for another software solution, that is positioned between keyboard and windows.

Post Reply