This is my current code.
Code: Select all
lmc_device_set_name('streamdeck','26362D41')
lmc_print_devices()
lmc_set_handler('streamdeck', function(button,direction)
if (direction == 1) then return end
if (button == 13) then
lmc_send_keys(':HoneyA:', 5)
elseif (button == 97) then
lmc_send_keys('{F13}', 50)
elseif (button == 98) then
lmc_send_keys('{F14}', 50)
elseif (button == 99) then
lmc_send_keys('{F15}', 50)
elseif (button == 100) then
lmc_send_input(174, 0, 0) --Press Volume Down
elseif (button == 101) then
lmc_send_input(177, 0, 0) --Press Previous Track
elseif (button == 102) then
lmc_send_keys('{F18}', 50)
elseif (button == 103) then
lmc_send_input(175, 0, 0) --Press Volume Up
elseif (button == 104) then
lmc_send_input(176, 0, 0) -- Press Next Track
elseif (button == 105) then
lmc_send_input(179, 0, 0) -- Press Play/Pause
elseif (button == 111) then
lmc_send_keys('{F22}', 50)
elseif (button == 106) then
lmc_send_keys('{F23}', 50)
elseif (button == 109) then
lmc_send_keys(':HoneyGNB:', 1)
elseif (button == 107) then
lmc_send_keys(':HoneyDelet:', 1)
elseif (button == 8) then
lmc_send_keys('^{F14}', 50)
elseif (button == 110) then
lmc_send_keys(':izapog:', 50)
elseif (button == 96) then
lmc_send_keys('^{F16}', 50)
end
end
)