Simulating Key Press event using Python for Linux
Posted
by user308827
on Stack Overflow
See other posts from Stack Overflow
or by user308827
Published on 2010-04-04T18:57:49Z
Indexed on
2010/04/04
19:03 UTC
Read the original article
Hit count: 485
Hi,
I am writing a script to automate running a particular model. When the model fails, it waits for a user input (Enter key). I can detect when the model has failed, but I am not able to use python (on linux) to simulate a key press event. Windows has the SendKeys library to do this but I was wondering if there is a similar library for python on linux.
Thanks!
© Stack Overflow or respective owner