Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
607 B
4
Indexable
Never
import time
from pynput.mouse import Listener
import pyautogui

time.sleep(5)
mouse_moved = False

def on_move():
    global mouse_moved
    mouse_moved = True

with Listener(on_move=on_move) as listener:

    while not mouse_moved:
        pyautogui.hotkey('ctrl', 'shift', 'n')
        pyautogui.write("https://nakarmpsa.olx.pl/blog/pet/gapcia/")
        pyautogui.press('enter')
        time.sleep(1)
        pyautogui.scroll(-200)
        pyautogui.click(x=1459, y=971, button='left')
        time.sleep(1.5)
        pyautogui.hotkey('ctrl', 'w')

listener.stop()
listener.join()
Leave a Comment