PROJET AUTOBLOG


Links

source: Links

⇐ retour index

PyAutoGUI · PyPI

mercredi 7 septembre 2022 à 23:18

Pour prendre le contrôle du clavier et de la souris en python.
https://pyautogui.readthedocs.io/en/latest/

import pyautogui
import time
while True:
    pyautogui.moveRel(0, 100, duration=5)
    time.sleep(2)
    pyautogui.moveRel(0, -100, duration=5)
    time.sleep(2)

Permalink