the macros work fine in the few other programs I've tried responsively, just no this program.
this is the code (a modified quicks/lua)
Code: Select all
-- assign logical name to macro keyboard
lmc_assign_keyboard('MACROS');
-- define callback for whole device
lmc_set_handler('MACROS',function(button, direction)
if (direction == 1) then return end -- ignore down
if (button == 111) then lmc_send_keys('{F13}')
elseif (button == 106) then lmc_send_keys('{F14}')
elseif (button == 109) then lmc_send_keys('{F15}')
elseif (button == 107) then lmc_send_keys('{F16}')
elseif (button == 96) then lmc_send_keys('{F17}')
elseif (button == 97) then lmc_send_keys('{F18}')
elseif (button == 98) then lmc_send_keys('{F19}')
elseif (button == 99) then lmc_send_keys('+{F1}')
elseif (button == 100) then lmc_send_keys('+{F2}')
else print('Not yet assigned: ' .. button)
end
end)
(also I have second keyboard connected to this computer, but the issue continues when I disconnected it)
any clue what could be the problem?
thanks in advance