Skip to content Skip to sidebar Skip to footer

Send Keyboard Event Using Subprocess

I have two python scripts. First one is just a script waiting for user keyboard input. When user presses a key it prints a pressed key value. Second script calls first one through

Solution 1:

subprocess per se has no facilities to "send keyboard events" (to the sub-process or to any other process). You need other aproaches, such as the one this article shows for Windows.


Post a Comment for "Send Keyboard Event Using Subprocess"