for months now, my OBS was freezing and nobody was able to pin point the problem as everything was normal on programs end.
Yesterday i found that my code was sending wrong keys sequences sometimes. As if either the ctrl or alt keys are were left down. Can you tell me the problem and how to solve it.
Below is a code that works just as it should.
Code: Select all
--W--^+%
elseif (button == 87 and direction ==0) then
lmc_send_keys('%{NUM0}', 50)--unmute Gato
lmc_sleep(100)
lmc_send_keys('^{F21}', 50)--start fader
lmc_sleep(100)
lmc_send_keys('+{F23}', 50)
lmc_sleep(300)
lmc_send_keys('^{F17}', 50)--Mute player
lmc_sleep(500)
lmc_send_keys('^{F23}', 50)--start Recording
and actually it does
but sometimes when i use it after another key assigned to "TAB" key, it sends wrong keys , as if some keys are hold so the next key combinations are mixed into each other , make my streaming software crash.
These are the keys affecting each other, when used one after another.
Code: Select all
--TAB--^+%
elseif (button == 9 and direction ==0) then
lmc_send_keys('^{F19}', 50) --hide "like"
lmc_sleep(100)
lmc_send_keys('^{NUM9}', 50)
lmc_sleep(300)
lmc_send_keys('^{F16}', 50)--unMute player
lmc_sleep(100)
lmc_send_keys('^{F13}', 50)--mute Gato
lmc_sleep(100)
lmc_send_keys('^{F24}', 50)--stop Recording
--SHIFT--^+%
elseif (button == 16 and direction ==0) then
lmc_send_keys('^{F19}', 50) --hide "like"
lmc_sleep(100)
lmc_send_keys('^{F16}', 50)--unMute player
lmc_sleep(100)
lmc_send_keys('+{INS}', 50)
lmc_sleep(300)
--lmc_send_keys('^{F13}', 50)--mute Gato
lmc_sleep(1000)
lmc_send_keys('^{F24}', 50)--stop Recording
--CTRL--^+%
elseif (button == 17 and direction ==0) then
lmc_send_keys('^{F19}', 50) --hide "like"
lmc_sleep(100)
lmc_send_keys('^{F16}', 50)--unMute player
lmc_sleep(100)
lmc_send_keys('^{NUM7}', 50)
lmc_sleep(300)
lmc_send_keys('^{F13}', 50)--mute Gato
lmc_sleep(100)
lmc_send_keys('^{F24}', 50)--stop Recording