這兩者最大共同點就是可以操作計算機,模擬人工輸入和鼠標操作等等。不過這兩者也有側重點,PyAutoGUI側重於鼠標,鍵盤,截圖,消息框的功能,Pywinauto側重對CS的操作,雖然都有鍵盤,鼠標等模擬輸入,不過最核心還是軟件上的操作比較多。可以說各有所長。
PyAutoGUI安裝:pip install pyautogui
Pywinauto安裝:pip install pywinauto
具體教程看官網:
https://pywinauto.readthedocs.io/en/latest/index.html
http://pyautogui.readthedocs.io/en/latest/introduction.html