Page 1 of 1

Need Some Help - Syntax Issue

Posted: 26 Sep 2019, 04:08
by surge42
This guy's video (Asq Gaming) provides the following code which generates simple macros which print multiple keys when one key is depressed.

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
) 
Any idea why nothing prints when button 67 and 86 are pressed? FYI: The code will work if %^ are removed.

Re: Need Some Help - Syntax Issue

Posted: 26 Sep 2019, 07:55
by admin
I think {} are for special key names, did you try with regular brackets - %^(g)?
Or send the sequence using lmc_send_input which gives you more possibilities