Page 1 of 1

Original keys are being sent

Posted: 08 Nov 2018, 20:55
by zlatko0o
Hello,

This is my first time using LUA Macros. It's pretty frustrating that I cannot block the original key.
For example, I have the following:

Code: Select all

-- when run, press any key on the keyboard you want luamacros to be assigned to
lmc_device_set_name('LB', '3934C13')

-- define callback for whole device
lmc_set_handler('LB', function(button, direction, flag)
    if (direction == 0) then
       return
    end


    if button == 97 then
        lmc_send_input(175, 0, 0)
        print('Your key ID number is:   ' .. button)
    end
end
)
This is supposed to VOLUME UP when I press 1 on the numpad, however, it increases the volume but "1" is being sent as well. This happens everywhere, notepad++, browsers, even in lua macros itself.

Any suggestions?

I am running WIndows 10 64-bit.