CTRL and Shift sticking

Announcements, questions
Post Reply
echvinya
Posts: 1
Joined: 18 Nov 2018, 21:21

CTRL and Shift sticking

Post by echvinya » 18 Nov 2018, 21:27

Greetings, I am having an issue where, after I hit a key that I have assigned to do a "^+{key}" that it will continue to hold down Control or Shift until I hit those keys on my non-luamacros keyboard.

Here is the code that I am using:

lmc_set_handler('streamdeck', function(button,direction)
if (direction == 1) then return end
if (button == 96) then
lmc_send_keys('^+{1}', 50)
lmc_sleep (2000)
lmc_send_keys('^+{1}', 50)
elseif (button == 112) then
lmc_send_keys('^+{F1}', 50)

else print('Not yet assigned: ' .. button)
end


With another "elseif" for every assigned key.

Any ideas what I am doing wrong? I am a Lua noob, so I am sure that it is something very simple.

Post Reply