Using Python to manipulate the GUI's of other programs?

后端 未结 3 1855
臣服心动
臣服心动 2021-01-06 16:27

I have a program here that has an entry box and a button.

I want python to enter a string into the entry box, then press the button. What is the best way of going a

相关标签:
3条回答
  • 2021-01-06 16:39

    I've heard of, but not yet tried myself:

    • WATSUP
    • Python Win32 GUI Automation, aka "pywinauto"
    0 讨论(0)
  • 2021-01-06 16:44

    pyWinAuto will work nicely for this. With it you can "type" text into windows based on window title( or window class) as well as "click" buttons. Its fairly easy to use, and the website is pretty good about giving you examples on how to do what you want.

    http://pywinauto.openqa.org/howto.html

    0 讨论(0)
  • PyAutoGUI (installable through pip) can automate mouse/keyboard and works on Mac/Windows/Linux.

    It also has some basic screenshot image recognition capabilities like Sikuli has.

    https://pypi.python.org/pypi/PyAutoGUI

    0 讨论(0)
提交回复
热议问题