Big Issue, Lua doesn't work when OBS is in the focus
Posted: 23 Sep 2020, 19:12
Hello there!
I actually have 2 problems:
1. When OBS is in FOCUS Lua doesn't work.
E.G. I set NUM5 to be ^+F1, but when OBS is in the FOCUS triggering Numpad's NUM5 gives just a regular NUM5 value of 5.
Like as I did this on the main keyboard. But If I press NUM5 out of OBS focus it would trigger correct combination of ^+F1.
How to solve it?
How to make OBS/Win to do not "see" NUM5 when you press it on the Lua keyboard?
2. NUM5 is NUM5.
When you use Lua NUM5 (^+F1) OBS/Win understand it as NUM5 and only then as ^+F1
So if you have a hotkey on the NUM5 of your main keyboard and you set your extra NUM5 to be ^+F1 - OBS will execute NUM5 and then ^+F1, when you trigger Extra NUM5.
Any solution?
This 2 problems existing together and I would appreciate for any feedback.
Thank you!
I actually have 2 problems:
1. When OBS is in FOCUS Lua doesn't work.
E.G. I set NUM5 to be ^+F1, but when OBS is in the FOCUS triggering Numpad's NUM5 gives just a regular NUM5 value of 5.
Like as I did this on the main keyboard. But If I press NUM5 out of OBS focus it would trigger correct combination of ^+F1.
How to solve it?
How to make OBS/Win to do not "see" NUM5 when you press it on the Lua keyboard?
2. NUM5 is NUM5.
When you use Lua NUM5 (^+F1) OBS/Win understand it as NUM5 and only then as ^+F1
So if you have a hotkey on the NUM5 of your main keyboard and you set your extra NUM5 to be ^+F1 - OBS will execute NUM5 and then ^+F1, when you trigger Extra NUM5.
Any solution?
This 2 problems existing together and I would appreciate for any feedback.
Thank you!
Code: Select all
lmc_device_set_name('streamdeck','12E34091')
lmc_print_devices()
lmc.minimizeToTray = true
lmc_set_handler('streamdeck', function(button,direction)
if (direction == 1) then return end
if (button == 13) then
elseif (button == 101) then -- 5
lmc_send_keys('^+{F5}', 50)