Skip to content

Commit ad4b3f6

Browse files
author
zhaww
committed
英雄联盟自动刷人机
1 parent dc3d625 commit ad4b3f6

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

venv/Include/amusement/autoMove.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# -*- coding:utf-8 -*-
2+
# Author: zww
3+
# 英雄联盟自动刷人机
4+
import pyautogui as pag
5+
import time
6+
import random
7+
8+
screenWidth, screenHeight = pag.size()
9+
#暂停10秒 进入LOL界面
10+
time.sleep(5)
11+
# print(str(screenWidth) + ' ;' + str(screenHeight))
12+
while True:
13+
randdomWidth = random.randint(200, screenWidth-200)
14+
randomHeight = random.randint(200, screenHeight-200)
15+
print(str(randdomWidth) + ' ;' + str(randomHeight))
16+
pag.moveTo(randdomWidth, randomHeight, 0.5)
17+
# pag.click(button='right')
18+
pag.typewrite('q')
19+
time.sleep(5)
20+
21+
# print(pag.position())

0 commit comments

Comments
 (0)