Python code to automate desktop activities in windows

前端 未结 5 1898
旧巷少年郎
旧巷少年郎 2020-12-02 11:16

I want to automate desktop activities in Windows environment using Python. How it can be done? Some examples will also be helpful.

By desktop activities, I mean acti

5条回答
  •  忘掉有多难
    2020-12-02 12:10

    You can try Automa.

    It's a Windows GUI automation tool written in Python which is very simple to use. For example, you can do the following:

    # to double click on an icon on the desktop
    doubleclick("Recycle Bin")
    
    # to maximize
    click("Maximize")
    
    # to input some text and press ENTER
    write("Some text", into="Label of the text field")
    press(ENTER)
    

    The full list of available commands can be found here.

    Disclaimer: I'm one of Automa's developers.

提交回复
热议问题