Page 1 of 1

Send key combination only on "release" of specific key

Posted: 28 Jan 2019, 00:36
by I3ordo
I would like to send +F13 to be sent only when "button "86" is released.

-- //if button 86 is released then send Shift+F13

if (button == 86) then
lmc_send_keys('+{F13}', 50)

//the structure of my currently working code is like this.

lmc_device_set_name('OBSDeck','2FAD678D')
lmc_print_devices()
lmc.minimizeToTray = true
lmc_minimize()

lmc_set_handler('OBSDeck', function(button,direction)
if (direction == 1) then return end

if (button == 86) then --V
lmc_send_keys('+{F13}', 50)

elseif (button == 13) then --enter
lmc_send_keys('%<{ENTER}', 50)

end
end
)