Page 1 of 1

Mouse button

Posted: 05 Apr 2016, 19:22
by Bahamut
Hi i'm a beginner whit this program. I would to remap a side button of mouse, bound to "left control". With lmc_print_devices() return that the mouse is detected like keyboard. I can set the button to "K" for example and it worked but is also pressed the "L Ctrl". My target is to have the "K" but no the "L Ctrl".

My lua:
-- assign logical name to macro keyboard
lmc_assign_keyboard('MACROS');

-- define callback for whole device
lmc_set_handler('MACROS',function(button, direction)
if (button == 17) then lmc_send_keys ("K")
end
end)

Any help?

Ps: Sorry for my bad english

Re: Mouse button

Posted: 06 Apr 2016, 08:07
by admin
Your mouse driver simulating keyboard is probably kind of special.
I'm not even sure if you can remap single Ctrl at regular keyboard - you can try.
Anyway if LuaMacros is not blocking the control key from your mouse I think the API hack inside LuaMacros just doesn't work for your mouse driver. The script is correct, keys should be blocked for whole device.