-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDisEnchant.py
54 lines (47 loc) · 1.04 KB
/
DisEnchant.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import pyautogui
import keyboard
import time
import config
start = list(config.start)
end = config.end
delay = config.delay
gap = config.gap
def suma():
time.sleep(delay)
keyboard.press('shift')
pyautogui.click(end)
pyautogui.click(end)
pyautogui.click(end)
keyboard.release('shift')
time.sleep(3)
def izq():
slot = 0
global start
while slot < 9 :
keyboard.press('shift')
pyautogui.click(start)
keyboard.release('shift')
slot = slot +1
time.sleep(delay)
suma()
time.sleep(delay)
if slot < 9:
start[0] = start[0] -gap
def der():
slot = 0
global start
while slot < 9 :
keyboard.press('shift')
pyautogui.click(start)
keyboard.release('shift')
slot = slot +1
time.sleep(delay)
suma()
time.sleep(delay)
if slot < 9:
start[0] = start[0] +gap
izq()
start[1] = start[1] -gap
der()
start[1] = start[1] -gap
izq()