Page 1 of 1

How to Keep another key with original function?

Posted: 28 Dec 2021, 10:20
by teamzhangmeng
I am beginner using LuaMacros,reference with quickstart.lua
so now I just change one KEY, and I want to keep another key with original function
I use "else lmc_send_keys(handler)" but when press another key will sent "NUMBER"
How to keep another key with original function? :?:
Thanks a lot


lmc_set_handler('JIALING',function(button, direction)
if (direction == 1) then return end -- ignore down
if (button == 101) then lmc_send_keys('e')
else lmc_send_keys(button)
end

Re: How to Keep another key with original function?

Posted: 29 Dec 2021, 09:28
by admin
Don't handle whole keyboard, just one key - https://github.com/me2d13/luamacros/wiki/Triggers