[PYTHON] To those who do not have her on Christmas Eve ◯ Voice keyboard

Hello, everyone at the limit development mackerel of dangerous people or public relations and blog FascodeNetwork is to put a thing spider you're doing, such as such as the fat active. Please note that this is the first time I posted on Qiita, so there may be some points that may not be reached.

How it was made

A tool that uses Python and VLC, which is a terrifyingly end-of-the-century tool that makes a ◯ squealing keyboard every time you press a key. is.

First of all, I have to make a key detection so-called keylogger that works in the background in a language that I can understand a little.

I searched for various things under that condition Using Python's pyxhook library seems to be the easiest This is easy to understand about how to use https://qiita.com/kaitaku/items/5c327ddd779260c63036

code

Even so, it feels like I copied the source code from the top and played with it. It is a code that just sounds a sound when key input is detected.

GitHub code https://gist.github.com/naoko1010hh/77d15c8658a4fadfc7e945da80446e22 Screenshot_20201223-210734.png

If you don't mind, please watch the video that I actually moved on Twitter. It may be better to reduce the volume before seeing https://twitter.com/naoko1010hh/status/1322766477649453057?s=19

The audio used in the video is Mijinko's audio paid material. https://www.dlsite.com/maniax/work/=0product_id/RJ287819.html

Finally

There is a feeling of retrofitting, but my future goal is to allocate sounds to each key so that those who need support can remember the key layout.

Recommended Posts

To those who do not have her on Christmas Eve ◯ Voice keyboard
[For those who have mastered other programming languages] 10 points to catch up on Python points
What to do when Japanese is not displayed on matplotlib
Image inspection machine for those who do not do their best
I tried to teach Python to those who have no programming experience