Jump to content

LuaMacros Troubles

ZeldaN64

So, I decided to try and use LuaMacros because I wanted to make my own stream deck with my keyboard. So far, I wanted to try and test out the coding first, so that I wouldn't have to just hit certain keystrokes.

 

The problem I'm facing is that I have the shift key, on my second keyboard, so that LuaMacros registers it as Ctrl + Shift, but it's not registering it.

 

It's a short code, but this is the line of code I have set.

 

lmc_print_devices ()

 

lmc_set_handler ('streamdeck', function (button, direction)

if (direction == 1) then return end

if (button == 13) then

lmc_send_keys ('^{ENTER}', 50)

 

elseif (button == 97) then

lmc_send_keys ('^  {ENTER}', 50)

 

elseif (button == 16) then

lmc_send_keys ('^ {+}', 50)

 

end

end

)

 

The plus in the line is the shift key, according to the modifier keys.

https://github.com/me2d13/luamacros/wiki/List-of-Keys

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×