当前位置:网站首页>Pyautogui usage example
Pyautogui usage example
2022-07-27 00:20:00 【AntHub】
List of articles
# coding=utf-8
import pyautogui
import time
def test():
distance = 1000
time.sleep(5)
pyautogui.moveTo(400, 300)
while distance > 0:
time.sleep(1)
pyautogui.drag(distance, 0, duration=0.1)
distance -= 5
pyautogui.drag(0, distance, duration=0.1)
pyautogui.drag(-distance, 0, duration=0.1)
distance -= 5
pyautogui.drag(0, -distance, duration=0.1)
def loop_drag():
while True:
pyautogui.drag(1, 0, duration=0.1)
pyautogui.drag(-1, 0, duration=0.1)
print(time.asctime())
time.sleep(540)
def do_scroll():
while True:
pyautogui.click()
pyautogui.doubleClick()
# pyautogui.scroll(clicks=1, x=100, y=120, )
pyautogui.hscroll(clicks=-500, x=100, y=120)
time.sleep(2)
pyautogui.vscroll(clicks=500, x=100, y=120)
pyautogui.click()
time.sleep(3)
def auto_scroll():
while True:
# pyautogui.scroll(clicks=1, x=100, y=120, )
pyautogui.hscroll(clicks=-5, x=100, y=120)
time.sleep(3)
print(time.asctime())
if __name__ == '__main__':
# loop_drag()
auto_scroll()
边栏推荐
- 爬虫解析网页的 对象.元素名方法
- 生成yolov5.wts文件出错
- 在pycharm中部署yolov5报错问题
- Baidu website Collection
- 机器学习模型——lightGBM
- Can the stock account opening commission be adjusted? Is it safe to open an account on your mobile phone
- Leetcode - hash table
- C and pointers Chapter 18 runtime environment 18.8 programming exercises
- push to origin/master was rejected 错误解决方法
- [Gorm] model relationship -hasone
猜你喜欢

第3章 跨域问题

知识蒸馏——pytorch实现

4. Talk about the famous Zhang Zhengyou calibration method
![[C language] array](/img/b7/fe090984af689e45cf3492ff8d4c61.png)
[C language] array

Dynamic memory management

Convolutional neural network -- lenet (pytorch Implementation)

爬虫解析网页的find方法

第1章 需求分析与ssm环境准备

卷积神经网络——LeNet(pytorch实现)

C and pointer Chapter 18 runtime environment 18.1 judgment of runtime environment
随机推荐
Codeforces D. two divisors (number theory, linear sieve)
Search engine hijacking of black hat SEO
14_ Basic list
Design of electronic scale based on 51 single chip microcomputer
第1章 开发第一个restful应用
Several search terms
PTA 7-4 small generation (DFS)
4-4 object lifecycle
100. Same tree
[Gorm] model relationship -hasone
11_ Weather case - monitoring properties
第1章 拦截器入门及使用技巧
Upload files to OSS file server
Apple TV HD with the first generation Siri remote is listed as obsolete
Chapter 3 cross domain issues
DHCP, VLAN, NAT, large comprehensive experiment
MVC three-tier architecture
NFT display guide: how to display your NFT collection
Deep learning of parameter adjustment skills
深度学习调参技巧