Untitled
unknown
python
12 days ago
446 B
8
Indexable
import pyautogui as pg class Drag: def __init__(self): pass @staticmethod def move(x, y, duration=None): pg.moveTo(x, y, duration=float(duration)) @staticmethod def drag(x, y, button='left', duration=None): pg.dragTo(x=x, y=y, duration=float(duration), button=button) mouse = Drag() for i in range(9): mouse.move(228, 118, duration=0.75) mouse.drag(220, 569, button='left', duration=0.75)
Editor is loading...
Leave a Comment