Send key combination only on "release" of specific key

How can be this controlled in that simulator? Can HIDmacros be used with this application?
Post Reply
I3ordo
Posts: 7
Joined: 01 Oct 2018, 06:58

Send key combination only on "release" of specific key

Post by I3ordo » 28 Jan 2019, 00:36

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
)

Post Reply