Need Some Help - Syntax Issue
Posted: 26 Sep 2019, 04:08
This guy's video (Asq Gaming) provides the following code which generates simple macros which print multiple keys when one key is depressed.
Any idea why nothing prints when button 67 and 86 are pressed? FYI: The code will work if %^ are removed.
Code: Select all
lmc_device_set_name('OBS','AA6362C')
lmc_print_devices()
lmc_set_handler('OBS', function(button,direction)
if (direction == 1) then return end
if (button == 67) then
lmc_send_keys('%^{g}', 50)
elseif (button == 86) then
lmc_send_keys('%^{B}', 50)
end
end
)