views:

48

answers:

1

I began learning Python a few days ago, and i was wondering about a practical use for a program.
Then i came up with the following: if my brother is in his room recording himself playing guitar, a led plugged to the usb and wired so it's outside his door lights up, and then i'll know he's recording and i'll take care not to make any noises.
The main questions are:

  • How Python can detect any recording going on in the system?
  • How would i interface with the usb so i can actually turn the led on?
A: 

to interact with USB, you can read this related question.

to detect recording, you will have to tell us on which operating system your program is intented to run (but i am not sure it is possible to detect that another application is recording)

Adrien Plisson
The program will run on Windows. I thought about checking if the recording device is busy, and then turn the led on. Actually, doesn't matter which app is using it...as long as it's being used, the light turns on.
Jorge