Untitled

 avatar
unknown
python
2 years ago
974 B
5
Indexable
import time
import pynput
import keyboard
import mouse
import pyautogui
import pydirectinput
mouse = pynput.mouse.Controller()
def move_smooth(xm, ym, t):
    for i in range(t):
        if i < t/2:
            h = i
        else:
            h = t - i
        mouse.move(h*xm, h*ym)
        time.sleep(1/100)
i = 0;
glugpill = 0
print('enter number: ')
num1 = int(input())
keyboard.wait("-")
while i < num1:
    i = i + 1
    pyautogui.press('1')
    pydirectinput.click(button='right')
    move_smooth(-0.25, 0, 40)
    pydirectinput.click(button='right')
    move_smooth(0, 0.175, 40)
    pydirectinput.click(button='right')
    move_smooth(0.25, 0, 40)
    pydirectinput.click(button='right')
    pyautogui.press('2')
    pydirectinput.click(button='right')
    time.sleep(0.125)
    pyautogui.press('3')
    pydirectinput.click(button='left')
    move_smooth(0.12, -0.1, 40)
    glugpill = glugpill + 1
    if glugpill%3==0:
        move_smooth(0, 0.1, 40)
        
    
Editor is loading...