How to send a command like a real keyboard

Hi,

i searched the whole day in the web, but i cannot find what i need.

could someone tell me how a commad (Raspberry pi with Rasbian) has to be that it simulate a real keybord input?

In my case i created a display with a raspberry which shows all time my google calender. Now i want to use some keyboard shortcuts for my web calender which runs in Chromium, like change the view from monthly to daily etc.

I want to trigger those shortcuts from a node which is controlled by Google-assistent, that´s why i´m want to start that command with a exec Node.

thanks in advance

Felix

As always, Internet search is your friend.

hi, this solution won´t work in a exec node, nothing happend to the chromium web site.
i tried it in the terminal and it typed me what i wrote in the command. hmm...
any other idea ?

Cannot be done directly, you will need something like selenium to simulate input from a “script” (there are many types of software like this, search for selenium alternative)

1 Like

it works with xautomation ... just type the command.

Perfect , thx a lot for pushing me in the correct direction.

1 Like

Nice, i learned something too :wink:

1 Like