A
A
Alexey Syrtsov2022-03-19 14:36:54
Yandex
Alexey Syrtsov, 2022-03-19 14:36:54

How to remotely simulate a button press on a computer?

I want to make it so that through the Yandex smart home system you can pause the video playing on your computer and play it again. The easiest way, it seemed to me, to do this is to somehow simulate pressing the "space" button.

Ideally, I want to find a program that can simulate a button press using a request on the local network. So far, nothing of the sort has been found. If there are options, how else can I implement this - I will be glad to get acquainted.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nadim Zakirov, 2022-03-19
@Siro4ek

If the video is played in a browser, then stop-play is simply configured using JavaSctipt. You will need to raise a small web server and through it you can issue commands to the browser remotely.

D
Drno, 2022-03-19
@Drno

If the video is from a file - vlc player. There is a web interface,
but I'm more worried about the smart home, which works through Yandex)))

S
shaposhnikow, 2022-03-24
@shaposhnikow

I don't think the question in the title is correct.
But, if you answer it, then I see a hardware solution based on Arduino Leonardo, which perfectly emulates a HID keyboard.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question