hello,everyone!
This is my first Lua programme.when i press key once the result is double hit
how to solve double hit ? when i press key slowly,lua just excute one time
thank you~
lmc.minimizeToTray = true
lmc_minimize()
lmc_device_set_name('kb1','1EC44D52')
lmc_print_devices()
lmc_set_handler('kb1',function(button, direction)
if (button == 101) then lmc_send_keys('A')
end
end)
how to solve double hit?
Re: how to solve double hit?
Read this: https://github.com/me2d13/luamacros/wiki/Triggers
The callback is called once for key down event and second time for key up.
The callback is called once for key down event and second time for key up.
Petr Medek
LUAmacros author
LUAmacros author