Inserting text with one key

How can be this controlled in that simulator? Can HIDmacros be used with this application?
Post Reply
Liaml2002
Posts: 1
Joined: 08 Aug 2020, 11:31

Inserting text with one key

Post by Liaml2002 » 08 Aug 2020, 11:34

I'm new to this, is it possible to press one key and it inserts a sentence. For example if i press the number 1 key it would replace it with. "Hey, how can I help you?

emielo
Posts: 8
Joined: 03 Sep 2018, 12:41

Re: Inserting text with one key

Post by emielo » 21 Sep 2020, 08:54

Found in on: https://2ndkeyboard.webnode.nl/uitleg-luamacros/

In LuaMacros:

-- assign logical name to macro keyboard
lmc_assign_keyboard('MACROS');

-- define callback for whole device
lmc_set_handler('MACROS',function(button, direction)
if (direction == 1) then return end -- ignore down

if (button == 97) then

lmc_send_keys ('Hey, how can I help you?')




elseif (button == 49) then
lmc_send_keys ('Hey, how can I help you?')

else print('Not yet assigned: ' .. button)
end
end)

Post Reply