How to Keep another key with original function?

Announcements, questions
Post Reply
teamzhangmeng
Posts: 2
Joined: 28 Sep 2020, 05:07

How to Keep another key with original function?

Post by teamzhangmeng » 28 Dec 2021, 10:20

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

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: How to Keep another key with original function?

Post by admin » 29 Dec 2021, 09:28

Don't handle whole keyboard, just one key - https://github.com/me2d13/luamacros/wiki/Triggers
Petr Medek
LUAmacros author

Post Reply