0

Hey guys,

I am currently using subprocess module to open programs and stuff like that...

What I want to know is; if in case I want to open Windows' Sound Recorder, how do I start the recording action? Like:

subprocess.call(location of the program)

-will only open the Sound Recorder, but how do I make it to start recording?

Eagerly waiting for a reply,
thanks

4
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by Stefano Mtangoo
0

If Sound Recorder has a command-line option, then you can send the arguments along to start it etc.

0

open the Sound Recorder, but how do I make it to start recording?

That's not the kind of thing that subprocess was intended for. That kind of behavior is more akin to win32 hooks.

Subprocess can manipulate std input but not buttons on a GUI. As sneekula said, if the windows sound recorder can be fully utilized through command line processes then you'll be good to go, otherwise you'll need to figure out if that program has any win32 handles to work with.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.