Only send key once

Announcements, questions
Post Reply
fsxfaulder
Posts: 2
Joined: 29 Sep 2015, 20:37

Only send key once

Post by fsxfaulder » 03 Oct 2015, 22:24

Hello,

Sorry if I'm missing something, I'm quite new to all of this ;)

I'm using LuaMacros to interpret keys on an old keyboard and send key commands to another program however I've noticed that they're usually sent a couple of times when I press the key once. Is there a way to limit it to only one send keys?

Thanks!

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

Re: Only send key once

Post by admin » 05 Oct 2015, 08:08

Shouldn't be sent multiple times. Share your script and try to put print command into your handler to see what's going on.
Petr Medek
LUAmacros author

fsxfaulder
Posts: 2
Joined: 29 Sep 2015, 20:37

Re: Only send key once

Post by fsxfaulder » 13 Dec 2015, 17:36

Hi,

Sorry, I've been busy lately and haven't had chance to reply.

I was able to solve the issue with

Code: Select all

if (direction == 0) then return end
Thanks anyway

Post Reply