3

How can I enter text in the text fields of the window shown by a program in an automated manner?

lms-lms
  • 31

1 Answers1

1

In order to simulate user input you can use xdottool which is mentioned in comments to your question.

Besides, there is xaut (formerly xautomation) python lib. You cas simulate mouse movement and mouse clicks, keystrokes, and manipulate windows from Python.

Moreover, there's X11:GUITest perl package. This can be used to interact (SendKeys, ClickMouseButton, FindWindowLike, etc.) with applications running under an X Windows environment. Including applications built (GTK+, Qt, Motif, etc.) upon X11 / Xlib.

kirill-a
  • 2,923