2 keyboards in different languages
Posted: 28 Feb 2019, 06:04
Sorry, for version of Google translate. I don't speak English. I want to make 2 keyboards that type in two different languages. Russian and English. In LuaMacros I write the following code:
I wish that when you press the "q" output of the Russian " й ".
But nothing happens on the English layout. And in Russian when you click on " Й " is displayed " Р№"
If you do the opposite.
Go to the Russian layout and press "й". I want to get a "q" but nothing happens.
It is necessary that one keyboard output "й" and the second " q"
PS button 81 = Russian " й "= English " q"
Code: Select all
lmc_device_set_name('Eng','188A0D20')
lmc_print_devices()
lmc_set_handler('Eng', function(button,direction)
if (direction == 1) then return end
if (button == 81) then lmc_send_keys('й')
else print('Not yet assigned: ' .. button)
end
end
)
I wish that when you press the "q" output of the Russian " й ".
But nothing happens on the English layout. And in Russian when you click on " Й " is displayed " Р№"
If you do the opposite.
Code: Select all
lmc_device_set_name('Eng','188A0D20')
lmc_print_devices()
lmc_set_handler('Eng', function(button,direction)
if (direction == 1) then return end
if (button == 81) then lmc_send_keys('q')
else print('Not yet assigned: ' .. button)
end
end
)
It is necessary that one keyboard output "й" and the second " q"
PS button 81 = Russian " й "= English " q"