我是靠谱客的博主 幽默台灯,这篇文章主要介绍什么lol云顶之奕小助手小蜜蜂肝不完了?让万能的python来帮你,现在分享给大家,希望可以做个参考。

前言

最近的小蜜蜂路线皮肤非常可爱,但是上班族又没时间刷刷刷。
瞬间想到万能的python来代替本人肝皮肤。

核心库PyAutoGui

pyautogui介绍

项目地址 https://github.com/asweigart/pyautogui

文档地址 https://pyautogui.readthedocs.io/en/latest/

Python的win下的自动化框架PyAutoGui 可以代替本人做点击 等操作

基本操作

比如呢 鼠标左击 右击 双击 等事件

也可以键盘的敲击事件

复制代码
1
2
3
4
5
6
>>> import pyautogui >>> screenWidth, screenHeight = pyautogui.size() # Returns two integers, the width and height of the screen. (The primary monitor, in multi-monitor setups.) >>> currentMouseX, currentMouseY = pyautogui.position() # Returns two integers, the x and y of the mouse cursor's current position. >>> pyautogui.moveTo(100, 150) # Move the mouse to the x, y coordinates 100, 150. >>> pyautogui.click() # Click the mouse at its current location. >>> pyautogui.cli

最后

以上就是幽默台灯最近收集整理的关于什么lol云顶之奕小助手小蜜蜂肝不完了?让万能的python来帮你的全部内容,更多相关什么lol云顶之奕小助手小蜜蜂肝不完了?让万能内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(83)

评论列表共有 0 条评论

立即
投稿
返回
顶部