Controlling mouse with Python

后端 未结 15 2168
滥情空心
滥情空心 2020-11-22 14:53

How does one control the mouse cursor in Python, i.e. move it to certain position and click, under Windows?

15条回答
  •  遇见更好的自我
    2020-11-22 15:14

    very easy 1- install pakage :

    pip install mouse
    

    2- add library to project :

    import mouse
    

    3- use it for example :

    mouse.right_click()
    

    in this url describe all function that you can use it :

    https://github.com/boppreh/mouse

提交回复
热议问题