1 Star 0 Fork 0

bluebug2016/python-mini-projects

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
python-auto-draw.py 525 Bytes
一键复制 编辑 原始数据 按行查看 历史
Aditya Jetely 提交于 2020-09-10 13:06 +08:00 . Fixed folder names and added README in them
import pyautogui
import time
# time to change tabs from editor to paint;
time.sleep(10)
# it will remain clicked till program ends;
pyautogui.click()
# can be varied according to convininence
distance = 250
while distance > 0:
# right
pyautogui.dragRel(distance, 0, duration = 0.1)
distance -= 5
# down
pyautogui.dragRel(0, distance, duration = 0.1)
# left
pyautogui.dragRel(-distance, 0, duration = 0.1)
distance -= 5
#up
pyautogui.dragRel(0, -distance, duration = 0.1)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bluebug2016/python-mini-projects.git
git@gitee.com:bluebug2016/python-mini-projects.git
bluebug2016
python-mini-projects
python-mini-projects
master

搜索帮助