Doesn't block keys in notepad++
Posted: 23 Apr 2018, 10:49
Hi,
I've just discovered Luamacros a few days ago. It is awesome. Thank you for your work.
I am having a problem that original keystrokes are still being sent to notepad++
For example, the code below blocks all keys, except in notepad++, where the keys are still being sent.
And another example, running the code below and when numpad1 is pressed it prints "xyz" in other programs. Except in notepad++, it prints "1xyz"
Is it possible to also block keystrokes in notepad++?
I've just discovered Luamacros a few days ago. It is awesome. Thank you for your work.
I am having a problem that original keystrokes are still being sent to notepad++
For example, the code below blocks all keys, except in notepad++, where the keys are still being sent.
Code: Select all
lmc_assign_keyboard('MACRO')
lmc_set_handler('MACRO', function(button, direction)
end)
Code: Select all
lmc_assign_keyboard('MACRO')
lmc_set_handler('MACRO', function(button, direction)
if (direction == 0) then return
elseif (button == 97) then lmc_send_keys('xyz') end
end)